MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual page 85

Developing coldfusion mx applications
Table of Contents

Advertisement

Operator Description
\
Integer division: Divide an integer by another integer. Use the backslash character (\) to
separate the integers. The right operand cannot be zero. For example, 9\4 is 2.
^
Exponentiation: Return the result of a number raised to a power (exponent). Use the
caret character (^) to separate the number from the power; for example, 2^3 is 8. Real
and negative numbers are allowed for both the base and the exponent. However, any
expression that equates to an imaginary number, such -1^.5 results in the string "-1.#IND.
ColdFusion does not support imaginary or complex numbers.
Boolean operators
Boolean, or logical, operators perform logical connective and negation operations. The operands
of Boolean operators are Boolean (True/False) values.The following table describes the Boolean
operators:
Operator Description
NOT
Reverse the value of an argument. For example, NOT True is False and vice versa.
AND
Return True if both arguments are True; return False otherwise. For example, True AND
True is True, but True AND False is False.
OR
Return True if any of the arguments is True; return False otherwise. For example, True
OR False is True, but False OR False is False.
XOR
Exclusive or: Return True if one of the values is True and the other is False. Return False
if both arguments are True or both are False. For example, True XOR True is False, but
True XOR False is True.
EQV
Equivalence: Return True if both operands are True or both are False. The EQV operator
is the opposite of the XOR operator. For example, True EQV True is True, but True EQV
False is False.
IMP
Implication: The statement A IMP B is the equivalent of the logical statement "If A Then
B." A IMP B is False only if A is True and B is False. It is True in all other cases.
Decision operators
The ColdFusion decision, or comparison, operators produce a Boolean True/False result. The
following table describes the decision operators:
Operator
IS
IS NOT
CONTAINS
DOES NOT CONTAIN
GREATER THAN
Description
Perform a case-insensitive comparison of two values. Return
True if the values are identical.
Opposite of IS. Perform a case-insensitive comparison of two
values. Return True if the values are not identical.
Return True if the value on the left contains the value on the
right.
Opposite of CONTAINS. Return True if the value on the left
does not contain the value on the right.
Return True if the value on the left is greater than the value on
the right.
Expressions
85

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents