What actually happens is that the value that is assigned to Temp gets 
assigned the value "Goodbye" in this case.  If you add #Hello# to your 
cfoutput then you would see "Hello Goodbye Goodbye"

HTH

Michael Corrigan
Programmer
Endora Digital Solutions 
www.endoradigital.com
630/942-5211 x-134
  ----- Original Message ----- 
  From: Baskin, Dave 
  To: CF-Talk 
  Sent: Monday, December 10, 2001 3: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 

  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.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

Reply via email to