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

The for each token is similar to the C# `foreach' statement that can be used to iterate enumerations. When you click the for each action, the following code is displayed:

 THEN
  •  for each <enter a value>
    
  • When you click <enter a value> , a free text area is displayed. The syntax for the free text area is <type> <variable name> in <collection> for example:

    Declare java.util.Vector vect = newVector();
    ...
    For each (String myString in vect)
    ...

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