Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Statements Reference > Guidelines for Using Siebel eScript > For StatementThe For statement repeats a series of statements a fixed number of times. Siebel eScript does the following when it runs the For statement:
Formatfor ( [var] counter = start; condition; increment ) Table 19 describes the arguments for the For statement. UsageIf the counter argument is not declared, then you must use the Var statement to declare it. Although it is declared in the For statement, the scope of the counter variable is local to the entire function that includes the for loop. If you use multiple counters, then you must use a comma to separate each counter. For example: for (var i = 1, var j = 3; i < 10; i++, j++) If you configure Siebel CRM to modify the value in the counter argument other than through the increment that occurs as a result of running the For statement, then your script might be difficult to maintain or debug. ExampleFor an example of the For statement, see Evaluate Expression Method. |
Siebel eScript Language Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |