evaluate

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.

evaluate(expression1 [, expression2] [, expressionN]) → returns Object

Discouraged: In almost all cases evaluate is unnecessary (use bracket notation instead). Use of evaluate can lead to performance and security issues.

evaluate Argument Reference

expression1
Required

expression2

expressionN

Links more information about evaluate

Examples sample code invoking the evaluate function


Tag Syntax

<!--- Evaluate the expression ---> 
 <cfset first = "ColdFusion"> 
 <cfset second = "ColdFusion"> 
 <cfset op = "eq"> 
 <cfoutput>#evaluate("first #op# second")#</cfoutput> 

Expected Result: YES


Fork me on GitHub