Rule Builder > Technical Rule Language Reference > Tokens for the Action Part of a Rule > while

The token while is used to build an IRL while statement similar to the Java 'While':

 while (test)
      body

The body is executed as soon as 'test' returns true. The test is reevaluated in every loop. When you click the while token, the following code is displayed:

 THEN
  •  while <enter a value>
    
  • The while token is composed of the two subtokens given in Table 24.15:

    Table 24.15   Subtokens for while
    Subtoken 
    Function 
    <enter a value>  Insert a value. The value must be an expression that returns an object or value.  
    break  Exit a loop. 
    continue  Skip an iteration of a loop. 

    images/blueArrow_icon.gif

    Add a nested action. You can select any action except the timeout action. 


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