repeat until
SYNTAX:
REPEAT
[ Statement_block ] UNTIL ( bool_expr )
� bool_expr - A Boolean expression.
DESCRIPTION:
As long as the bool_expr evaluates to FALSE (0), the Statement_block is executed. After each execution of the Statement_block, bool_expr is evaluated. Statement_block is executed at least once.
EXAMPLE:
In this example, the check_input routine is repeatedly called. The routine returns a positive value when some input is available. This REPEAT loop is executed until input becomes available. The initial value of 500 for ii has no special meaning. It merely needs to be a value > 0.
ii = 500 repeat
ii = check_input( ) until ( ii > 0 )