Ok, guess I am missing something here:

<cfset foo = "fee fi fo fum #variable# this is dynamic content">
If #variable# is not set CF errors, If #variable# is set puts value into
foo.


<CFOUTPUT>
#foo#    -------foo would output to be   "fee fi fo fum #variable# this is
dynamic content"  is what was wanted??
</CFOUTPUT> -----not necessarily outputted, but to still contains the
#variable# unresolved?


This will set that up:
<cfset foo = "fee fi fo fum ##variable## this is dynamic content">

But even using evaluate, this errors with (Invalid CFML construct found):

<cfset variable = "fub">

<cfoutput>
#evaluate(foo)#
</cfoutput>

And just to test, this errors if #variable# is not set
<cfset foo = Evaluate("fee fi fo fum #variable# this is dynamic content")>

Can you show were this would work and be used, with evaluate?
Have me curious now.




-----Original Message-----
From: Aaron Rouse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 18, 2006 12:24 PM
To: CF-Talk
Subject: Re: Evaluate vs ?


This does the same thing as his:

<cfset foo = "fee fi fo fum #variable# this is dynamic content">

My guess is he was saying for the value of "variable" to not be put into foo
until the time that it was outputed instead of when set.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238047
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to