|
REPEAT UNTIL
This is the GPP language loop statement. It allows the repeated execution of a sequence of statements until a condition is met.
REPEAT
Sequence of execution statements
UNTIL ( <Bool-expr> );
GPP will first execute the sequence of statements, then check the Boolean expression in the REPEAT clause. If true, it will break the loop and continue with the next statement. If false, the loop will be repeated.
Like with IF, any Boolean expression can be used in the REPEAT clause.
GPP Compatibility Notes:
UNTIL also accepts the old GPP shortcut of specifying a variable name and meaning to check if the variable is actually set.
UNTIL(X) is interpreted by GPP as UNTIL(VAR_SET(X)).
As in IF, for complex conditions (AND, OR), the full syntax must be used.
|