The ColdFusion decision, or comparison, operators produce a Boolean True/False result. Many types of operation have multiple equivalent operator forms. For example, IS and EQ perform the same operation. The following table describes the decision operators:
Operator |
Description |
---|---|
IS EQUAL EQ |
Perform a case-insensitive comparison of two values. Return True if the values are identical. |
IS NOT NOT EQUAL NEQ |
Opposite of IS. Perform a case-insensitive comparison of two values. Return True if the values are not identical. |
CONTAINS |
Return True if the value on the left contains the value on the right. |
DOES NOT CONTAIN |
Opposite of CONTAINS. Return True if the value on the left does not contain the value on the right. |
GREATER THAN GT |
Return True if the value on the left is greater than the value on the right. |
LESS THAN LT |
Opposite of GREATER THAN. Return True if the value on the left is smaller than the value on the right. |
GREATER THAN OR EQUAL TO GTE GE |
Return True if the value on the left is greater than or equal to the value on the right. |
LESS THAN OR EQUAL TO LTE LE |
Return True if the value on the left is less than or equal to the value on the right. |
The following rules apply to decision operators:
"ab" LT "aba" "abde" LT "ac"