Next: Choose, Previous: The Assignment, Up: Statements
break
Statement
The break
statement leaves the foreach
loop with Label.
break Label;
If the label is omitted, the break statement leaves the innermost
foreach
loop it is contained in. The statement must be situated
in the body of the foreach
loop it wants to leave.