08-26-2023, 12:57 AM
The easiest way to exit ON a number is just with a simple DO loop.
start = 10
finish = 20
increment = +1
DO
'Whatever you want to repeat
start = start + increment
'Post increment work stuff, if desired
LOOP UNTIL start >= finish
start = 10
finish = 20
increment = +1
DO
'Whatever you want to repeat
start = start + increment
'Post increment work stuff, if desired
LOOP UNTIL start >= finish