hi guys

what code to use if you want to get the last bet high or lo roll? i need it so i can make a conditional statement that base on rolls whether its lo or hi ..
thank you
bethigh is the variable. It's true/false. So if (bethigh == true) then The last bet was high. == false would be low.
bethigh = !bethigh will flip it from one to the other either low -> high or high -> low.
hey thanks i figured it out anyway i want to stop after 3 streaks in a row my code isnt working can you please take a look
chance=49.5
base=0.00010000
nextbet = base
function dobet()
lossstreak = 0
lossswitch = 1
if (win) then
lossstreak = 0
lossswitch = 1
nextbet=base
else
lossstreak += 1
nextbet=previousbet*2
if (lossstreak == lossswitch) then
bethigh = !bethigh
lossswitch += 1
lossstreak = 0
elseif (lossstreak == 3) then
lossstreak = 0
stop()
end
end
end
thanks in advance