Repeat – Visara Master Console Center Scripting Guide User Manual
Page 171

Chapter 5 Script Commands
Scripting Guide
171
REPEAT
Syntax:
REPEAT...UNTIL
REPEAT
Commands
UNTIL
Expression
Description:
Repeats a sequence of commands until an expression evaluates to
TRUE.
Action:
The commands in the REPEAT block are repeatedly executed in
sequence until the expression evaluates to TRUE.
Parameters:
Expression. Boolean expression. The expression to evaluate that
determines whether or not to continue looping. Refer to Boolean on
page 50 for more information.
Returns:
N/A.
Notes:
1. The commands in the REPEAT block always execute at least once
because the expression is evaluated at the end of the loop.
2. The number of nested REPEATs is unlimited.
3. The number of commands allowed within the REPEAT block is
unlimited.
Example:
%Num := 1
REPEAT
INC
%Num
UNTIL %Num > 10
See Also: