Skip to content

_continue

abinition edited this page Oct 22, 2014 · 6 revisions

#continue

###Continue (restart) from the beginning of a for, while, or do loop.

Syntax

continue ;

Description

Use continue to restart from the beginning of a for, while, or doloop

Examples

for ( i=0;i<20;i++ ) {

  // Skip every even number.
  if ( i%2 == 0 ) continue ;

  puts i ;

  // Break after 15
  if ( i > 15 ) break ;
}

Related Links

break

Clone this wiki locally