Scripting reference · Nerdamer Language
break
Exits the nearest Nerdamer Scripting loop.
break can only be used inside while or for. It is consumed by the nearest loop and cannot cross a symbolic-function boundary.
Examples
These examples use Nerdamer Scripting.
Exit the loop after the first iteration.
block(x:0,while(1,block(x:x+1,break())),x)
// → 1Interfaces
The same operation is available through the interfaces below.
Nerdamer Scripting
Use this form in Nerdamer Scripting input passed to nerdamer(...).
break()
