Completion requirements
Description
In contrast to the break
statement,
continue
does not terminate the execution of the loop entirely: instead,
- In a
while
loop, it jumps back to the condition.
- In a
for
loop, it jumps to the update expression.
The continue
statement can include an optional label that allows the
program to jump to the next iteration of a labeled loop statement instead of the current
loop. In this case, the continue
statement needs to be nested within this
labeled statement.