Evaluates arguments, left to right; returns the result of evaluating the last argument.
Evaluate(string_expression1 [, string_expression2 [, ... ] ] )
| Parameter |
Description |
|---|---|
| string_expression1, string_expression2 |
Expressions to evaluate |
String expressions can be complex. They are complicated to write, because they are inside a string. If a string expression is double-quoted, double-quotes inside the expression must be escaped.
<!--- This shows the use of DE and Evaluate --->
<html>
<head>
<title>
Evaluate Example
</title>
</head>
<body bgcolor = silver>
<H3>Evaluate Example</H3>
<cfif IsDefined("FORM.myExpression")>
<H3>The Expression Result</H3>
<CFTRY>
<!--- Evaluate the expression --->
<cfset myExpression = Evaluate(FORM.myExpression)>
<!--- Use DE to output the value of the variable, unevaluated --->
<cfoutput>
<I>The value of the expression #Evaluate(DE(FORM.MyExpression))#
is #MyExpression#.</I>
</cfoutput>
...