User Tools

Site Tools


el:do

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

el:do [2016/01/01 22:38] (current)
Line 1: Line 1:
 +===== 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 ====
 +
 +{{page>​en:​start#​Program Control&​noheader}}
 +
 +==== Example ====
 +
 +<​code>​
 +t = 1
 +do
 +  print t
 +  t = t + 1
 +until t > 5
 +</​code>​
 +will print
 +<​code>​
 +1
 +2
 +3
 +4
 +5
 +</​code>​
 +
 +==== New To Version ==== 
 +
 +0.9.4g
 +
  
el/do.txt ยท Last modified: 2016/01/01 22:38 (external edit)