Difference between revisions of "Break"
From Mesham
Jump to navigationJump to search (→Example) |
m (4 revisions imported) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 9: | Line 9: | ||
== Example == | == Example == | ||
| − | while (true) { break; }; | + | function void main() { |
| + | while (true) { break; }; | ||
| + | }; | ||
| − | Only one iteration of the loop will complete, where it will break out of the body | + | Only one iteration of the loop will complete, where it will break out of the body. |
| + | |||
| + | ''Since: Version 0.41b'' | ||
[[Category:sequential]] | [[Category:sequential]] | ||
Latest revision as of 15:44, 15 April 2019
Syntax
break;
Semantics
Will break out of the current enclosing loop body
Example
function void main() {
while (true) { break; };
};
Only one iteration of the loop will complete, where it will break out of the body.
Since: Version 0.41b