Home | Javascript validator | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.
Microsoft® JScript®
continue Statement
 Language Reference 
Version 1 

See Also


Description
Stops the current iteration of a loop, and starts a new iteration.
Syntax
continue [label];

The optional label argument specifies the statement to which continue applies.

Remarks
You can use the continue statement only inside a while, do...while, for, or for...in loop. Executing the continue statement stops the current iteration of the loop and continues program flow with the beginning of the loop. This has the following effects on the different types of loops:

The following example illustrates the use of the continue statement:

function skip5()
{
  var s = "", i=0;
  while (i < 10) 
  {
    i++;
    // Skip 5
    if (i==5)
    {
      continue;
    }
   s += i;
  }
  return(s);
}

Home | Javascript validator | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.