Break
From Mesham
Jump to navigationJump to searchSyntax
break;
Semantics
Will break out of the current enclosing loop body
Example
while (true) { break; };
Only one iteration of the loop will complete, where it will break out of the body
break;
Will break out of the current enclosing loop body
while (true) { break; };
Only one iteration of the loop will complete, where it will break out of the body