ILOG Rules for .NET User Guides > ILOG Rule Solutions for Office > Writing and editing rules > Define variables and constants > Define additional variables for multiple occurrences of a business term

The Rule Editor defines one variable for each type of business term that it encounters, and identifies it with the word "the". For example, if customer is something you work with in your rules, the Rule Editor will define a variable called the customer, available in the completion menu.

If your rule requires you to refer to more than one occurrence of a customer, you have to explicitly define the others in the Definitions part, for example:

 Definitions
     set 'applicant' to a customer;
     set 'loyal customer' to a customer;
 If
     all of the following conditions are true:
         - 'applicant' is married to 'loyal customer'
         - 'loyal customer' is insured
 Then
     upgrade 'applicant''s rating;

See Also

definitions

set <variable> to <definition>