Object operators
Object operators define conditions based on objects (as opposed to attributes of objects). A customer is an object; the age of the customer is an attribute of the customer object.
| Operator | Description | Example |
|---|---|---|
| <object> is <object> | Tests that two objects are equivalent. | if the current customer is the customer on the rental agreement then... |
| <object> is not <object> | Tests that two objects are not equivalent. | if the current customer is not the customer on the rental agreement then... |
| <object> is one of <list> | Tests that an object is part of a set. | if the item of the order is one of 'discounted items' then... |
| <object> is not one of <list> | Tests that an object is not part of a collection. | if the customer category is not one of ’all categories’ then... |
| <list> contain <object> | Tests that a collection contains an object. This operator is functionally equivalent to <object> is one of <list>. | if the customer categories contain Platinum then... apply a 10% discount; |
| <list> do not contain <object> | Tests that a collection does not contain an object. This operator is functionally equivalent to <object> is not one of <list>. | if the customer categories do not contain Normal then... apply a 10% discount; |