The REPEAT statement evaluates the condition in the expression after executing the specified statement. If the condition in the expression is met, the statement is executed again. This unlike the WHILE statement, which evaluates the condition before executing the statement.
[<label> :"] REPEAT <procedural_statement> UNTIL <expression> END REPEAT [<label>]
label
(optional) is the identifier for the REPEAT statement that can be referenced by other statements. If specified, the label at the beginning of the statement must match the label at the end.
expression
is the expression that is evaluated to determine whether the condition is met.
procedural_statement
is the procedural statement that is executed before evaluating the expression.