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.

Table 1. Object operators
Operator Description Example

<object> is <object>

Tests that two objects are equivalent.

when a purchase event occurs, called 'the purchase'
if
   the location of 'the purchase' is the location of 'the customer'
then...

<object> is not <object>

Tests that two objects are not equivalent.

when a purchase event occurs, called 'the purchase'
if
   the location of 'the purchase' is not the location of 'the customer'
then  ...

<object> is one of <list>

Tests that an object is part of a set.

when a purchase event occurs, called 'the purchase'
if
   'the purchase' is one of the purchases of 'the customer'
then...

<object> is not one of <list>

Tests that an object is not part of a collection.

when a purchase event occurs, called 'the purchase'
if
   'the purchase' is not one of the purchases of 'the customer'
then...

<list> contain <object>

Tests that a collection contains an object. This operator is functionally equivalent to <object> is one of <list>.

when a purchase event occurs, called 'the purchase'
if
   the items of the shopping cart of 'the customer' contain the item of 'the purchase'
then... 

<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>.

when a purchase event occurs, called 'the purchase'
if
   the items of the shopping cart of 'the customer' do not contain the item of 'the purchase'
then...