• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

Evaluate

Synopsis

                   Evaluate(string1 [,string2] [,stringN])

Evaluates string expressions from left to right and returns the result from the rightmost expression. Evaluate( ) is useful when you need to evaluate multiple expressions at one time. Examples:

<cfset x=1>
<cfset y=2>
<cfset z=3>
<cfset Form.Name="Jim">
x=1<br>
y=2<br>
z=3<br>
Form.Name=Jim
<p><cfoutput>
Evaluate(1+1): #Evaluate(1+1)#<br>
Evaluate(3 MOD 2): #Evaluate(3 MOD 2)#<br>
Evaluate(x*y*z): #Evaluate(x*y*z)#<br>
Evaluate(sin(1)): #Evaluate(sin(1))#<br>
Evaluate((x+y+z)/3): #Evaluate((x+y+z)/3)#<br>
Evaluate('Form.Name'): #Evaluate('Form.Name')#<br>
Evaluate(7+2, 3+5): #Evaluate(7+2, 3+5)#<br>
Evaluate(7+2, 3+5, 1/4): #Evaluate(7+2, 3+5, 1/4)#<br>
</cfoutput>

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint