User Guide

Chapter 4: ColdFusion Expressions: Operators and Other Constructs 577
String operators
The is only one string operator, which is the concatenation operator.
Decision, or comparison, operators
ColdFusions decision, or comparison, operators produce a Boolean TRUE/FALSE.
\ Divides two integer values. Use the \ (trailing slash) to separate the
integers. The right operand cannot be zero. For example, 9 \ 4 is 2.
^ Returns the result of a number raised to a power (exponent). Use the
^ (caret) to separate the number from the power. The left operand
cannot be zero. For example, 2 ^ 3 is 8.
Arithmetic Operators (Continued)
Operator Description
String Operators
Operator Description
& Concatenates strings.
Decision Operators
Operator Description
IS Performs a case-insensitive comparison of the two
values and returns true if the values are identical.
IS NOT Opposite behavior of is.
CONTAINS Checks to see if the value on the left is contained in
the value on the right and returns true if it is.
DOES NOT CONTAIN Opposite behavior of contains.
GREATER THAN Checks to see if the value on the left is greater than
the value on the right and returns true if it is.
LESS THAN Opposite behavior of greater than.