Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
seuntjie
on 07/05/2017, 15:25:00 UTC
Are we able to use the < and > in the code?

For example say After 10 total losses in a martingale run I want to reset to base on the next win but keep x2 bets going on losses.

Code:
!win > 10 then

does that work?
Yes, you can use < and >, but not like you're using it.

win is a boolean, that means true or false. !win means the opposite of win.

So if win = true

print(win) will print out true
print(!win) will print out false.

You cannot compare boolean values with integers. You can for example use

Code:
if currentsreak>10 then

since currentstreak is an integer. Take a look at this article about variables and the variables available in the bot: https://steemit.com/dicebot/@seuntjie/dicebot-programmer-mode-tutorial-1-1-variables