Rule Builder > Technical Rule Language Reference > Tokens for the Condition Part of a Rule > evaluate

The token evaluate inserts a test on the object attributes and local variables in the condition part of a rule. This token is not proposed for the first condition.

When the condition part of a rule finishes with an evaluate statement, the action part of the rule can include an ELSE clause. The last evaluate within the condition part acts as a discriminator, to choose between the THEN or the ELSE execution branches. If the rule ends with several evaluate statements, only the last one is used to discriminate. The ELSE clause is optional.

Refer to the ILOG Rule Language Reference Manual for further details.

When you click this token, the following code is displayed:

 WHEN
  •  evaluate <enter an expression> = <enter a value>
    
  • The metatoken images/blueArrow_icon.gif provides additional expressions for inserting values, and allows you to insert any number of values, as required.

    The token evaluate is composed of the subtokens given in Table 24.5:

    Table 24.5   Subtokens for evaluate
    Subtoken 
    Function 
    <enter an expression>  Insert an object attribute or a variable. 
    <enter a value>  Insert a value for an object attribute or a variable. 
    = (Token in a Condition)  Choose an operator. 


    Customer Support | Copyright © 1987-2004 ILOG S.A. All rights reserved. Legal terms. PREVIOUS   NEXT