fn: break
[contents]

Contents

Syntax

The syntax for break calls is:

f++:  
break

n++:  
@break

Description

The break statement ends execution of the nearest enclosing loop in which it appears, control passes to code that follows the end of the loop, if any.

f++ example

Example of break being used with f++:

  1. :=(int, i=0)
  2. while(1)
  3. {
  4. console("i: ", i)
  5. if(i > 10)
  6. break
  7. ++(i)
  8. }

n++ example

Example of break being used with n++:

  1. @:=(int, i=0)
  2. @while(1)
  3. {
  4. @console("i: ", i)
  5. @if(i > 10)
  6. @break
  7. @++(i)
  8. }