Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Statements Reference > Guidelines for Using Siebel eScript > Switch StatementThe Switch statement makes a decision according to the value of a variable or expression. It chooses among alternatives when each choice depends on the value of a single variable. Siebel eScript does the following:
UsageMake sure you end a Case statement with a Break statement. Formatswitch( switch_variable ) Table 23 describes the arguments for the Switch statement. ExampleThis example configures Siebel CRM to perform an action depending on an account type. In this example, a letter indicates the type of account: switch ( key[0] ) Siebel eScript runs code in the statement block until it encounters a Break statement. In this example, if you remove the Break statement that occurs after the I=I+2 statement, then Siebel eScript runs the following code: For more information, see If Statement. |
Siebel eScript Language Reference | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |