User Tools

Site Tools


en:do

Differences

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

Link to this comparison view

en:do [2016/08/08 14:58]
admin
en:do [2020/02/28 10:46]
Line 1: Line 1:
-===== Do / Until (Statement) ===== 
- 
-==== Format ==== 
- 
-**do**\\ 
-(tab)//statement(s)//\\ 
-**until** //boolean_expr// 
- 
-==== Description ==== 
-Execute the //statement(s)// inside the do loop until the //boolean_expr// evaluates to true.  Do / Until executes the statements one or more times.  The test is done after each time the code in the loop is executed. 
- 
- 
-==== Example ==== 
-<code> 
-t = 1 
-do 
-  print t 
-  t = t + 1 
-until t > 5 
-</code> 
-will print 
-<code> 
-1 
-2 
-3 
-4 
-5 
-</code> 
- 
-==== See Also ==== 
-{{page>en:start#Program Control&noheader}} 
- 
-==== History ====  
-|0.9.4g|New To Version| 
- 
  
en/do.txt ยท Last modified: 2020/02/28 10:46 (external edit)