Expressions

ColdFusion expressions consist of operands and operators. Operands are constants and variables, such as "Hello" or MyVariable. Operators, such as the string concatenation operator (&) or the division operator (\/) are the verbs that act on the operands. ColdFusion functions also act as operators. 
The simplest expression consists of a single operand with no operators. Complex expressions consist of multiple operands and operators. For example, the following statements are all ColdFusion expressions:

12 
MyVariable 
(1 + 1)/2 
"father" & "Mother" 
Form.divisor/Form.dividend 
Round(3.14159)

For detailed information on using variables, see Using ColdFusion Variables. For detailed information on expressions and operators, see Using Expressions and Number Signs.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy