Loop
See Also: Boolean Expressions, Execution Control Commands, Case, For, Repeat, Until, While, Break, Boolean
Purpose
Terminates a repeating block of code initiated with For, Repeat, or While.
Syntax
For
Loop
or
Repeat
Loop
or
While
Loop
What It Does
When the loop is executed, execution goes back up to the For, Repeat, or While command which began the loop.
Notes
-
If a loop command is provided with no preceding
For,Repeat, orWhilecommand, the compiler will report an error. Conversely,ForandWhilecommands require a terminating loop command. -
Loopis an unconditional terminator. Use Until as a conditional block terminator.