Flow Control
FOR Loop
The FOR look is best used when you are going through a counting or given
amount of loops.
Here is the general form of a FOR loop. You can use the STEP optionally
with gives you some flexibility if you need to change the increment of
the loop or skip a given amount of items. Default STEP value is
1.
FOR loop index = initial value TO test value [STEP increment]
: :
: : (Body of loop)
: :
NEXT [loop index]
Do Loop While
Do Loop Until
Do While Loop
Do Until Loop
Recursion
|