List functions
List functions access values in a collection of objects and calculate the number of objects in a specific collection.
| Operator | Description | Example |
|---|---|---|
<object> is one of <list> |
Tests that an object is part of a collection. |
if the item of order is one of 'discounted items' |
<object> is not one of <list> |
Tests that an object is not part of a collection. |
if 'customer category' is not one of 'all categories' |
<list> contain <object> |
Tests that a collection contains an object. This function is equivalent to <object> is one of <list>. |
if 'customer categories' contain Platinum |
<list> do not contain <object> |
Tests that a collection does not contain an object. This function is equivalent to <object> is not one of <list>. |
if 'customer categories' do not contain Normal |
the number of <objects> in <list> |
Returns the total number of objects in a specific list. |
if the number of items in cart is more than 2 |
<attribute> of <list> |
Accesses a list of attribute values. |
if the countries of the addresses of customers contain "France" |