Continue Statement
The Continue statement starts a new iteration of a loop. It ends the current iteration of a loop, and then begins the next loop. Siebel eScript evaluates any conditional expressions before the loop reiterates.
Format A
continue;
continue label;
The following table describes the argument.
Argument | Description |
---|---|
label |
The name of the label that indicates where to resume running the code. This label includes the name of a method or a function followed by a colon. |
Example
The following example writes the numbers 1 through 6 and 8 through 10, and then the following string:
.Test
The use of the Continue statement after the if (i==7) statement prevents Siebel eScript from running the loop on the seventh iteration, but keeps running the loop:
var i = 0;
while (i < 10)
{
i++;
if (i==7)
continue;
document.write(i + ".Test");
}