Translations:Extension:Scribunto/Lua reference manual/8407/en

Unlike some other languages, Lua does not have a "continue" statement for loops (i.e. a statement to move onto the next iteration without breaking the loop altogether). It is straightforward to achieve the same effect by nesting a  block immediately inside the main loop, which will only ever iterate once for each iteration of the main loop (as its condition is always true). Using  will only end the inner loop, which has the practical effect of causing the main loop to continue onto the next iteration. If it is necessary to use  on the main loop, simply declare a variable which is checked each time the inner loop completes, and set it when necessary.