When using + or - in variable mathematics. Will the MIN or MAX command prevent a less than zero overflow from occuring?
e.g. Code
do
if b1>100 then dec b1 endif
if b0<10 then let b1=b1-4 MIN 1 endif
if b1=<3 then goto motor_off
loop
The idea of this example code, is to increase the decrement rate of a variable counter( 4 times >); without it going below zero. i.e. stopping at ONE.
e.g. Code
do
if b1>100 then dec b1 endif
if b0<10 then let b1=b1-4 MIN 1 endif
if b1=<3 then goto motor_off
loop
The idea of this example code, is to increase the decrement rate of a variable counter( 4 times >); without it going below zero. i.e. stopping at ONE.