While / End While

Format

while booleanexpression
statement(s)
end while

Description

Execute the statement(s) inside the while loop until the booleanexpression evaluates to false. While / End While executes the statements zero or more times. The test is done before the code in the loop is executed.

See Also

Example

r = 1
while r < 6
  print r
  r = r + 1
end while

will display

1
2
3
4
5

New To Version

0.9.4g

 
en/whileendwhile.txt · Last modified: 2010/06/30 09:09 by 76.177.172.88
 
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