User Tools

Site Tools


en:while

This is an old revision of the document!


While / End While (Statement)

Format

while boolean_expression
(tab)
statement(s)
end while ==== Description ==== Execute the
statement(s) inside the while loop until the boolean_expression 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.

Example

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

will display

1
2
3
4
5

See Also

History

0.9.4gNew To Version
en/while.1471026282.txt.gz · Last modified: 2020/02/28 10:46 (external edit)