SetVariable uses string functions so the secondline is setting the variable
named hello to the value of goodbye it is not setting temp to goodbye
to do that you would need setvariable("Temp","Goodbye")
----- Original Message -----
From: "Baskin, Dave" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, December 10, 2001 2:53 PM
Subject: Evaluate Question
> Can anyone tell me why the answer to this question is Hello Goodbye?
>
> What would the following CFML code output to a user?
>
> cfset Temp = "Hello"
> cfset x=SetVariable(Temp, "Goodbye")
> cfoutput #Temp# #Evaluate(Temp)#
>
> wouldn't it be Goodbye Goodbye since you're setting Temp to Goodbye before
> you output? thanks for any guidance.
>
> d
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists