Control Structures

repeat until

Supported By

Syntax

repeat until condition
   statementList
[(lastly|then|else)
   statementList]

end repeat

Condition is an expression that always yields true or false.

Example

put one into x
repeat until x > 10
  put x
  add 1 to x
end repeat

Description

The repeat until structure causes all the statements inside to execute in a loop repeated as long as the condition is false. The condition is checked following each iteration of the loop. The statements inside are executed at least once.

In OpenXION 1.3 and later, the statements under a lastly, then, or else keyword inside a repeat structure will be executed when the loop ends, unless the loop has ended because of an exit, pass, return, or throw.

See Also

repeat, repeat for, repeat for each, repeat foreach, repeat while, repeat with