A repetition end condition can be specified using the UNTIL operator.
Syntax:
[ range ] subexpression until endPatternExpression
If a range is not specified, subexpression evaluation is repeated until the endPatternExpression becomes TRUE. At that point the expression becomes TRUE.
If a range is specified, the subexpression 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 subexpression repetitions for this expression to become TRUE.
When the maximumNumber of repetitions is reached, the expression is evaluated as being TRUE and subexpression evaluation stops.