Scripting reference · Nerdamer Language
break
Leaves the loop it is in.
Works in while, for and each. It leaves only the innermost loop, and can't leave a function you defined.
Scripting
break()
Write it in a script: nerdamer('block(x:0,while(1,block(x:x+1,break())),x)'), or in the Playground.
Examples
Leave the loop after the first pass.
block(x:0,while(1,block(x:x+1,break())),x)
// → 1Open in Playground