Skip to content

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, or While command, the compiler will report an error. Conversely, For and While commands require a terminating loop command.

  • Loop is an unconditional terminator. Use Until as a conditional block terminator.