Comparison operators compare identifiers to literals in a boolean
expression that evaluates to either
FALSE. Comparison operations can be combined into
more complex expressions using the logical operators
OR. Expressions are
evaluated from left to right:
Age < 30
ANDWeight >= 100.00
ORLName = 'Smith'
In this example, the expression would be evaluated as if it had parentheses placed as follows (parentheses can be used to group expressions and can change the precedence of evaluation):
(Age < 30 AND Weight >= 100.00
(LName = 'Smith'
LName must be equal to
'Smith' or the
LName can be any
value as long as the
30 and the
greater than or equal to
100. Evaluating these
kinds of expressions should be second nature for most programmers.
The following message selector uses three of the six algebraic
comparison operators, which are
<30 AND Weight
>=100.00 OR LName
These algebraic comparison operators can be used on any of the
primitive property types except for
types are restricted to the
= or the
<> algebraic operators.
String types can be compared using the
comparison operator. For example:
Age < 30 AND Weight >= 100.00 OR LName
LIKE comparison operator attempts to match
each character in the literal with characters of the property value.
Two special wildcard characters, underscore (
_) and percent ...