Basic30 Language Reference
For ... Next Statement

Loop through a number of statements a specified number of times.

For counter = start To end [Step step]
   [statements]
   [Exit For]
   [Continue For]
Next
counter
Required variable for loop counter.
Supported variable types: uByte, Byte, uInteger, Integer, uLong, Long
start
Required starting expression
end
Required ending expression
step
Optional step size.  If omitted a step size of 1 will be used.
[statements]
Optional block of statements to be executed.

 

Related Statements:

Exit For
Exit the loop by jumping to the instruction after the corresponding Next statement.
Continue For
Skip any remaining statements and continue with the next itteration of the loop.

 

Also See: While...End While