572
Elements of ColdFusion Expressions
The following objects can be used to build expressions:
Objects Used to Build ColdFusion Expressions
Type
Integers
Real numbers
Strings
Boolean values
Date values
Description
Numbers with no decimal point.
Numbers with a decimal part. Also known as floating point
numbers.
The range of ColdFusion numbers is approximately ±10
or ±1 with 300 zeros after it. Most operations are accurate to
12 digits after the decimal point.
ColdFusion supports scientific notation.
Text values, which can be enclosed in single (') or double (")
quotes. Strings length is limited only by the amount of
available memory on the ColdFusion server.
To use a single quote inside a string that is single quoted,
escape the single quote by using two single quotes. You can
similarly escape a double quote inside a double quote-
enclosed string.
To insert a pound sign in a string, the pound sign must be
escaped, or doubled,
The result of a logical operation. Their value can be either
TRUE or FALSE. The numerical value of TRUE is 1. The
numerical value of FALSE is 0. When converted to a string,
TRUE becomes "YES" and FALSE becomes "NO" .
Date-and-time values identify a date and time in the range
100AD to 9999AD. If no time part is specified, time is set to
12:00am.
You can also directly enter a date object in any of the
following formats:
"October 30, 1999"
"Oct 30, 1999"
"Oct. 30, 1999"
"10/30/99"
"1999-30-10"
CFML Language Reference
300
,
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?
Questions and answers