Titan



continue


The keyword is used in loops.

The continue statement may only be used inside the body of a loop (for, while, do-while).

On executing a continue statement, the subsequent statements of the body of the innermost, currently executed loop are skipped and the next iteration starts.


Related keyword:


continue;


Example:

do {
  /* ... */
  if (cond1) { continue; /* execution continues with the next iteration of the do-while-loop */ }
  /* ... */
  for (var integer j:=1; j<=10; j:= j+1) {
    /* ... */
    if (cond2) { continue; /* continues with the next iteration of the for-loop */ }
    /* ... */
  }
  /* ... */
}


BNF definition of continue