Reference > Rule Languages > Business Action Language > BAL Operators > Object Operators

Object operators perform tests 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 5 Object operators
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; 

Related Concepts

Business Rules
Decision Tables
Decision Trees

Related Tasks

Creating Business Rules
Working With Decision Tables
Working With Decision Trees

Related Reference

BAL Operators
Date Operators
Number Operators
Text Operators

Related Samples and Tutorials

Tutorial: Creating Business Rules