[NAME] ALL.dao.control.while [TITLE] While Looping Control [DESCRIPTION] while is a simple looping construct that executes a block if the looping condition is tr ue, and repeats the execution as long as the condition is true. 0.1 Definition 1 WhileStmt ::= 'while' '(' [ LocalVarDeclaration ';' ] Expression ')' ControlBlock A while loop generally looks like the following: 1 while( expression ){ 2 block; 3 } If expression is true, block is executed and repeated until expression becomes false, na mely, while expression is true, execute block. 0.2 Examples 1 var i = 0; 2 while( i < 5 ){ 3 io.writeln( i ); 4 i += 1; 5 }