Siebel eScript Language Reference > Statements Reference > Guidelines for Using Siebel eScript >

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;

Format B

continue label;

Table 17 describes the argument.

Table 17. Arguments for the Continue Statement
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");
}

Siebel eScript Language Reference Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.