Do / Until

Format

do
statement(s)
until booleanexpression

Description

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

See Also

Example

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

will print

1
2
3
4
5

New To Version

0.9.4g

 
fr/dountil.txt · Last modified: 2010/09/05 17:27 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki