The keyword continue goes to the next iteration in a loop. |
|
Syntax |
continue |
Example |
Within a for loop, continue can be used to go to the next iteration. |
|
n=10 for i=1,n do if (i<5 || i>=8) then continue; else print(i) end end |
Result |
5 6 7 |
See Also: |