| ILOG Rules for .NET User Guides > ILOG Rule Solutions for Office > Writing and editing rules > Define variables and constants > Retrieve all occurrences of a business term |
Retrieve all occurrences of a business term |
PREVIOUS NEXT |
A variable can be used to retrieve a list of all occurrences of a business term. This is done with the all construct.
This example creates three variables:
Definitions set 'gold customers' to all customers where the category of each customer is Gold; set 'junior gold customers' to a customer in 'gold customers' where the age of this customer is at most 15; set 'senior gold customers' to a customer in 'gold customers' where the age of this customer is at least 65;
set <variable> to <definition>
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |