(attribute) of (list)
You use this construct to access the list of values of a given attribute for a list of
objects.
Purpose
You use this construct in any part of the rule to access a list of attribute values.
Syntax
<attribute> of <list>
Description
You use this construct with other constructs that work with lists. For example, you can use it
with the in <list> construct in a
condition, or with the set construct in an action. The
list can be an expression or an embedded list.
Example
The following action sets the value of the variable to the list of the names of the banks of all the customers.
set decision to the bank accounts of customers;
The following definition creates a variable that represents the list of all the cities from the addresses of all customers.
definitions set 'registered city' to the cities of the addresses of customers;
In the following rule, the action executes only if there is one or more customers who live in France.
if the countries of the addresses of customers contain "France" then set decision to "include EU countries";