26
Chapter 2: CFML Basics
The following table lists the unsupported logical operators and their equivalent ColdFusion
operators:
Arithmetic operators
The following table lists the arithmetic operators that ColdFusion supports:
Unsupported
logical operator
Equivalent ColdFusion
decision operator
Description
=
IS, EQUAL, EQ
Tests for equality.
<
LT, LESS THAN
Tests for less than.
<=
LTE, LE,
LESS THAN OR EQUAL TO
Tests for less than or equal to.
>
GT
GREATER THAN
Tests for greater than.
>=
GTE,
GREATER THAN OR EQUAL TO
Tests for greater than or equal to.
< >
IS NOT, NEQ,
NOT EQUAL
Tests for nonequality.
CONTAINS
Tests whether a value is contained within a
second value.
DOES NOT CONTAIN
Tests whether a value is not contained
within a second value.
Operators Description
+, -, *, /
The basic arithmetic operators: addition, subtraction, multiplication, and division.
In the case of division, the right operand cannot be zero.
+, -
Unary arithmetic operators for setting the sign of a number as either positive or
negative (+ or -).
Mod
Returns the remainder (modulus) after a number is divided by a divisor. The result
has the same sign as the divisor. The right operand cannot be zero. For example,
11 MOD 4 is 3.
\
Divides two integer values. Use the \ (backslash character) 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.
Содержание COLFUSION MX 7-GETTING STARTED BUILDING COLDFUSION...
Страница 1: ...COLDFUSION MX7 Getting Started Building ColdFusion MX Applications...
Страница 6: ...6 Contents...
Страница 10: ......
Страница 14: ...14 Chapter 1 Introducing ColdFusion MX...
Страница 38: ...38 Chapter 3 Database Fundamentals...
Страница 40: ......
Страница 58: ...58 Chapter 5 Lesson 2 Configuring Your Development Environment...
Страница 70: ...70 Chapter 6 Lesson 3 Retrieving Data...
Страница 84: ...84 Chapter 7 Lesson 4 Building Dynamic Queries...
Страница 96: ...96 Chapter 8 Lesson 5 Creating a Trip Detail Page...
Страница 102: ...102 Chapter 9 Lesson 6 Creating a Main Application Page...