Hello,
I'm trying to use a continue statement in the following fashion:
block first:
for i in 0..<10:
for j in 0..<5:
if j == 3: continue first
However, the compiler reports that continue cannot have a label.
How can I achieve this?
The manual does not define continue to have an argument.
To better understand the problem, let's say you have echo $i, " ", $j in the innermost loop.
What do you expect that to print out if the code worked as you expected?
I'm wondering if you meant to use break instead.
If your goal is continuing to the next iteration of the outer loop this works:
for i in 0..<10:
block innerloop:
for j in 0..<5:
if j == 3: break innerloop