WHILE |
|
| Top Previous Next | |
Syntax:
WHILE <string>
... commands ...
WEND
Description:
Commands between WHILE and WEND are repeatedly executed while the result of <string> evaluates to non- null (true). When the string is null script execution continues on the line following WEND.
WHILE commands may be nested. For clarity it is a good idea to indent the commands nested within WHILE ... WEND as shown in the example.
Tip: Never use the GOTO command to branch out of a WHILE ... WEND pair of commands.
OK:
Unchanged.
Example:
%A = 0
WHILE @GREATER(10,%A)
%A= @SUCC(%A)
WEND
See also: