I can’t find it in the developer wiki, or the devforum.
5 Likes
What do you mean “can’t find” ?
http://lua-users.org/wiki/ContinueProposal
terminate current iteration of a
while
,repeat
, orfor
loop, skipping to the evaluation of the condition for the next loop iteration. Just likereturn
andbreak
statements,continue
can only be written as the last statement of a block.
11 Likes
If you want an example, this prints all the odd numbers
for i = 1, 10 do
if i%2 == 0 then
continue
end
print(i)
end
As the keyword implies, it continues to the end.
8 Likes