NRETURN


control
Since v1.0.0
Available on all platforms

Immediately exit a certain number of macros being executed. The NRETURN function expects a number of levels on top of the stack.

Signature

Examples

'level0' <% 'level1' <% 'level2' <% 'level3' <% 'level4' <% 'level5' 3 NRETURN //back from 5 to 2 'end level5' %> EVAL 'end level4' %> EVAL 'end level3' %> EVAL 'end level2' %> EVAL 'end level1' %> EVAL 'end level0'
//Be very carefull when using NRETRUN in a loop. Prefer using BREAK. [ [ 0 1 2 4 ] [ 3 1 4 5 6 ] ] <% <% DUP <% 1 == %> //is the value 1 ? <% 3 NRETURN //if you try 4, you will end the program without any warning %> IFT %> FOREACH %> FOREACH 'end'