image\cslogo3d1.gif

JScript continue Statement

Stops the current iteration of a loop, and starts a new iteration.

Syntax: JScript continue Statement

continue [label];

Arguments: JScript continue Statement

label

Optional argument that specifies the statement to which continue applies.

Remarks: JScript continue Statement

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:

·   while and do...while loops test their condition, and if true, execute the loop again.

·   for loops execute their increment expression, and if the test expression is true, execute the loop again.

·   for...in loops proceed to the next field of the specified variable and execute the loop again.

Copyright 2001 Sun Microsystems, Inc. All rights reserved. Legal Notice.