Comparison

UDP ›› Rule Conditions ››
Parent Previous Next

Comparison

Comparison is used in the conditional part of a rule (see Rule Condition) to compare values of two attributes using the following operators:

   

1.  “=”  

2.  “<”,  

3.  “>”  

4.  “<=”  

5.  “>=”  

6.  “<>” (not equal)  

   

For example:

   

-          Account.State = 'CLOSED'  

-          Account.Balance < Account.Type.MinBalance  

   

  NOTE: All attribute types can be compared for equality or non-equality (even attributes of the reference type – see Reference Attributes). If the types of the attributes on both sides of the comparison are different, Aware IM automatically converts the attribute types if it can. For example, if attributes of the Plain Text type are compared with the attributes of the Number type, numbers are converted to strings as in the example below:

 

Account.Name = 1000  

   

this comparison will only be true if the value of Account.Name is ‘1000’

   

  NOTE:  Only attributes of the Number, Date, Timestamp and Duration may be compared using other operators (‘<”, “>”, “<=”, “>=”)

   

  NOTE:  If a value of an attribute is undefined (blank) it is considered to be 0 for comparison purposes.