Description
Evaluates one or more string expressions, dynamically, from left to right. (The results of an evaluation on the left can have meaning in an expression to the right.) Returns the result of evaluating the rightmost expression.
Returns
An object; the result of the evaluations.
Category
Function syntax
Evaluate(string_expression1 [, string_expression2 , … ]) |
See also
DE, IIf, PrecisionEvaluate, Using Expressions and Number Signs in the Developing ColdFusion Applications
Parameters
Parameter |
Description |
---|---|
string_expression1, string_expression2... |
Expressions to evaluate |
Usage
String expressions can be complex. If a string expression contains a single- or double-quotation mark, the mark must be escaped.This function is useful for forming one variable from multiple variables. For example, to reference a column of the query qNames with a variable, var, using an index value to traverse rows, you could use the following code:
<cfset var=Evaluate("qNames.#colname#[#index#]")> |
Example
<!--- This example shows the use of PrecisionEvaluate and DE functions.---> |