BARfly Help - BAR Implementation File Reference - Function Statements

  The "while" statement

WhileStatement ::= ‘while’ S? ConditionalExpression S? (ExecutableStatement | BracedStatements)

The “while” statement is an unordered loop.  The conditional expression is evaluated at the start of each loop iteration; a false value for this expression signals an exit condition for the loop.

The statement or statement blocks can be executed any number of times (including zero times if the evaluation expression is initially false).


  See also:  [Evaluation and null statements] [The "goto" statement and text labels] [The "return" statement] [The "if" and "else" statements]
[The "for" statement] [The "while" statement] [The "do" statement] [The "switch," "case," and "default" statements]
[The "break" statement] [The "continue" statement] [Opcode and mod byte escape sequences]


BARfly Help Copyright © 2009 Christopher Allen