Table of Contents

Do / Until (Statement)

Format

do
(tab)statement(s)
until boolean_expression

Description

Execute the statement(s) inside the do loop until the boolean_expression evaluates to true. Do / Until executes the statements one or more times. The test is done after each time the code in the loop is executed.

Example

t = 1
do
  print t
  t = t + 1
until t > 5

will print

1
2
3
4
5

See Also

2016/01/01 22:42

History

0.9.4gNew To Version