Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Statements > Simple statements > Break

Break

Break may occur only as long as there is at least one enclosing statement of the type block, do, for, foreach, while, or switch. Break targets to the innermost statement of a given type, or if a label is given, to the enclosing statement referred to by the label.

Break will terminate execution of the target statement, executing passed finally statements before actually leaving the target statement.

  break  := "break" [ symbollabel ] [ stmt-modifier ] ";" 
See also  | Statements  | Simple statements  | Do .. while  | For  | Foreach  | Switch  | While  | <break>  | Statement modifiers  | Statement labels  | Grammar
Contributes notes:
Add a note
What's new | Anvil