User Tools

Site Tools


en:while

Differences

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

Link to this comparison view

en:while [2016/08/12 13:00]
admin
en:while [2020/02/28 10:46]
Line 1: Line 1:
-===== While / End While (Statement) ===== 
-==== Format ==== 
-**while** [[booleanexpressions|boolean_expression]]\\ 
-(tab)[[programsyntax|statement(s)]]\\ 
-**end while** 
- 
-==== Description ==== 
-Execute the [[programsyntax|statement(s)]] inside the while loop until the [[booleanexpressions|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 ==== 
-<code> 
-r = 1 
-while r < 6 
-  print r 
-  r = r + 1 
-end while 
-</code> 
-will display 
-<code> 
-1 
-2 
-3 
-4 
-5 
-</code> 
- 
-==== See Also ==== 
-{{page>en:start#Program Control&noheader}} 
- 
-==== History ====  
-|0.9.4g|New To Version| 
  
en/while.txt ยท Last modified: 2020/02/28 10:46 (external edit)