BARfly Help - BAR Implementation File Reference - Function Statements

  The "break" statement

BreakStatement ::= ‘break’ S? ‘;’

The "break" statement indicates an unconditional jump beyond the most immediate relevant braced block, including “switch” statements, “for” loops, “while” loops, and “do” loops.

This statement will exit a loop unconditionally.  This statement is required to jump beyond the end of a switched control block unless cases are designed to fall through.

This statement is not valid (and causes an error) if the statement appears when the only braced blocks containing the statement are “if” statements.


  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