![]() |
Retro Rocket OS
BASIC-Powered Operating System
|
Creates a counting loop. In the first form, the loop variable increases by 1 each time control reaches NEXT.
In the second form, the loop variable changes by the STEP amount each time.
If STEP evaluates to a negative value, the variable will decrement towards the lower value.
Loops may be nested. NEXT closes the nearest unmatched FOR.
Count up by 1
Count up by a custom step
Count down with a negative step
Real step size
See also: NEXT