While Loop

Performs a series of commands repeatedly until the specified expression evaluates to false.

While Loop (F9)

Parameters

Expression
Any valid expression. For example: while x < y.

Remarks

The expression is evaluated once before each iteration. If the expression evaluates to true (which is any result other than an empty string or the number 0), the body of the loop is executed; otherwise, execution jumps to the line following the loop's body.

While Loop

Download example

Examples of Loop commands