Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Using Siebel eScript > Guidelines for Using Siebel eScript > Use Expressions, Statements, and Statement BlocksAn expression includes two or more terms that perform a mathematical or logical operation. These terms are typically variables or functions that you can use with an operator to produce a string or numeric result. You can write code that uses an expression to configure Siebel eScript to do the following work: The following example statement includes an expression. It computes a sum and saves it in a variable:
Running Statements In a LoopA While statement is a type of statement that causes Siebel eScript to run the statement that occurs immediately after the While statement in a loop. If you enclose multiple statements in curly brackets, then Siebel eScript treats them as one statement and runs them in the loop. The following example includes this usage: while( ThereAreUncalledNamesOnTheList() == true) Siebel eScript treats the three lines that occur after the While statement as one unit. The brackets cause Siebel eScript to run the script through each line until it calls every name that resides in the list. If you remove these brackets, then it does the following: |
Siebel eScript Language Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |