This shows you the differences between two versions of the page.
en:do [2016/08/12 13:00] admin |
en:do [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Do / Until (Statement) ===== | ||
- | |||
- | ==== Format ==== | ||
- | |||
- | **do**\\ | ||
- | (tab)[[programsyntax|statement(s)]]\\ | ||
- | **until** [[booleanexpressions|boolean_expression]] | ||
- | |||
- | ==== Description ==== | ||
- | Execute the [[programsyntax|statement(s)]] inside the do loop until the [[booleanexpressions|boolean_expression]] evaluates to true. Do / Until executes the statements one or more times. | ||
- | |||
- | |||
- | ==== Example ==== | ||
- | < | ||
- | t = 1 | ||
- | do | ||
- | print t | ||
- | t = t + 1 | ||
- | until t > 5 | ||
- | </ | ||
- | will print | ||
- | < | ||
- | 1 | ||
- | 2 | ||
- | 3 | ||
- | 4 | ||
- | 5 | ||
- | </ | ||
- | |||
- | ==== See Also ==== | ||
- | {{page> | ||
- | |||
- | ==== History ==== | ||
- | |0.9.4g|New To Version| | ||
- | |||