A repetition end condition can be specified using the UNTIL operator.
Syntax:
[ range ] sub-expression until endPatternExpression
If a range is not specified, sub-expression evaluation is repeated until the endPatternExpression becomes TRUE. At that point the expression becomes TRUE.
If a range is specified, the sub-expression must become TRUE within the count specified as the range.
The syntax for the range is as follows:
Syntax:
[minimumNumber] : [maximumNumber]
At least one, either the minimumNumber or the maximumNumber, must be specified.
The minimumNumber is the minimum required number of TRUE sub-expression repetitions for this expression to become TRUE.
When the maximumNumber of repetitions is reached, the expression is evaluated as being TRUE and sub-expression evaluation stops.