Scripting reference · Nerdamer Language
continue
Skips the rest of the current pass of a loop.
Works in while, for and each. In a for loop, the step still runs.
Scripting
continue()
Write it in a script: nerdamer('block(k:0,s:0,while(3-k,block(k:k+1,continue(),s:s+1)),[k,s])'), or in the Playground.
Examples
s:s+1 never runs.
block(k:0,s:0,while(3-k,block(k:k+1,continue(),s:s+1)),[k,s])
// → [3, 0]Open in PlaygroundSkip 2: 1+3+4.
block(s:0,each([1,2,3,4],v,block(if(v==2,continue(),0),s:s+v)),s)
// → 8Open in Playground