Difference between revisions of "Break"

From Mesham
Jump to navigationJump to search
(Example)
m
Line 11: Line 11:
 
  while (true) { break; };
 
  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]]

Revision as of 18:09, 13 January 2013

Syntax

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.

Since: Version 0.41b