Continue statement

A continue statement leads to the immediate next iteration of the surrounding loop construct. It is only allowed within a loop. A continue statement is syntactic sugar for a nested block:

  1. while expr1:
  2. stmt1
  3. continue
  4. stmt2

Is equivalent to:

  1. while expr1:
  2. block myBlockName:
  3. stmt1
  4. break myBlockName
  5. stmt2