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++:

:=(int, i=0)
while(1)
{
	console("i: ", i)
	if(i > 10)
		break
	++(i)
}

n++ example

Example of break being used with n++:

@:=(int, i=0)
@while(1)
{
	@console("i: ", i)
	@if(i > 10)
		@break
	@++(i)
}

Sponsors