Breaks or continues a "while", "until", "loop" or a "cursor".
until false
# do something
continue if f.x == 0
break if f.x == 1
# do something more
Break and continue may be used from outside a loop, thanks to the
ref:
attribute:
set l []
concurrence
cursor tag: 'x0'
push l 0
stall _
sequence
push l 1
break ref: 'x0'
# where l ends up containing [ 1, 0 ]
A continue or a break may be "aliased", in other words stored in a local variable for reference in a sub-loop.
cursor
set outer-continue continue
push f.l "$(nid)"
cursor
push f.l "$(nid)"
outer-continue _ if "$(nid)" == '0_2_1_0_0'
# where l yields [ '0_1_1', '0_2_0_1', '0_1_1-1', '0_2_0_1-1' ]