<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 6.1 - htmldocs - functi76.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-24T21:02:38</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi76.htm#35458" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi76.htm#24106" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi76.htm#15967" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi76.htm#15442" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi76.htm#12983" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi76.htm#35458">
		<title>coldfusion/6.1/htmldocs/functi76.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi76.htm#35458</link>
		<description>Response to smaglio's comments:&lt;br /&gt;&lt;br /&gt;I think the results that you got from your testing is what supposed to be.&lt;br /&gt;In my understand, if there is a expression on the left side of the &quot;=&quot;, it will be evaluated automatically before assign the right side value to it. That is to say, ColdFusion treats the following statements as the same:&lt;br /&gt;&lt;br /&gt;&lt;cfset 'j.#name#' = 'k.l.#name#' /&gt;&lt;br /&gt;&lt;cfset Evaluate('j.#name#') = 'k.l.#name#' /&gt;&lt;br /&gt;&lt;br /&gt;Am I right?</description>
		<dc:creator>springdotnet</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-06-13T21:19:49</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi76.htm#24106">
		<title>coldfusion/6.1/htmldocs/functi76.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi76.htm#24106</link>
		<description>I was trying to toy around with the information you gave above and got kinda confused when I tried this:&lt;br /&gt;&lt;br /&gt;&lt;cfset j = structNew() /&gt;&lt;br /&gt;&lt;cfset name = &quot;n&quot; /&gt;&lt;br /&gt;&lt;cfset k = structNew() /&gt;&lt;br /&gt;&lt;cfset l = structNew() /&gt;&lt;br /&gt;&lt;cfset j.n = 1 /&gt;&lt;br /&gt;&lt;cfset k.l.n = 2 /&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfoutput&gt;#j.n#&lt;/cfoutput&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfset 'j.#name#' = 'k.l.#name#' /&gt;&lt;br /&gt;&lt;cfoutput&gt;#j.n#&lt;/cfoutput&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;which gives the output of:&lt;br /&gt;1&lt;br /&gt;k.l.n&lt;br /&gt;&lt;br /&gt;and then I tried:&lt;br /&gt;&lt;br /&gt;&lt;cfset j = structNew() /&gt;&lt;br /&gt;&lt;cfset name = &quot;n&quot; /&gt;&lt;br /&gt;&lt;cfset k = structNew() /&gt;&lt;br /&gt;&lt;cfset l = structNew() /&gt;&lt;br /&gt;&lt;cfset j.n = 1 /&gt;&lt;br /&gt;&lt;cfset k.l.n = 2 /&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfoutput&gt;#j.n#&lt;/cfoutput&gt;&lt;br /&gt;&lt;br /&gt;&lt;cfset 'j.#name#' = evaluate('k.l.#name#') /&gt;&lt;br /&gt;&lt;cfoutput&gt;#j.n#&lt;/cfoutput&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;which gave the output of:&lt;br /&gt;1&lt;br /&gt;2&lt;br /&gt;&lt;br /&gt;It almost seemed liked the left hand side of = within the &lt;cfset&gt; was automatically  processed through an evaluate(), while the right hand side was not.&lt;br /&gt;&lt;br /&gt;Is there a reason for this, what really happens during a &lt;cfset&gt;.</description>
		<dc:creator>smaglio</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-11-17T14:44:22</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi76.htm#15967">
		<title>coldfusion/6.1/htmldocs/functi76.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi76.htm#15967</link>
		<description>In response to a440guy:&lt;br&gt;These two techniques will display the same results.&lt;br&gt;However, the code paths for the two differ, and as described in my previous posting, Evaluate requires more processing time than other techniques.&lt;br&gt;We would recommend the direct &lt;cfoutput&gt;#varname#&lt;/cfoutput&gt; because it is more efficient.</description>
		<dc:creator>halL</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2004-06-02T15:06:10</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi76.htm#15442">
		<title>coldfusion/6.1/htmldocs/functi76.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi76.htm#15442</link>
		<description>To help in the understanding of this function, I would add:&lt;br /&gt;&lt;br /&gt;&lt;cfoutput&gt;#varname#&lt;/cfoutput&gt;&lt;br /&gt;&lt;br /&gt;is EXACTLY the same as&lt;br /&gt;&lt;br /&gt;&lt;cfoutput&gt;#Evaluate(&quot;varname&quot;)#&lt;/cfoutput&gt;</description>
		<dc:creator>a440guy</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-05-26T11:26:19</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi76.htm#12983">
		<title>coldfusion/6.1/htmldocs/functi76.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functi76.htm#12983</link>
		<description>This page is a little skimpy. Here is some information we posted in response to an inquiry on the ColdFusion MX (6) version of the page:&lt;br /&gt;&lt;br /&gt;The Evaluate function dynamically parses and evaluates an expression at run time. The Evaluate function can increase processing time compared to other techniques of getting dynamic values in ColdFusion because ColdFusion must parse and compile the expression that the function contains at run time, not just compile time.&lt;br /&gt;&lt;br /&gt;In many cases you can avoid using the evaluate function by putting variable data and expressions in pound signs in ColdFusion cfoutput regions, or by using the cfset function with an expression.&lt;br /&gt;&lt;br /&gt;For example, the following example sets a dynamically named variable without using Evaluate:&lt;br /&gt;&lt;br /&gt;&lt;cfset var1= &quot;x&quot;&gt;&lt;br /&gt;&lt;cfset &quot;#var1#&quot; = &quot;My value&quot;&gt;&lt;br /&gt;&lt;cfoutput&gt;#x#&lt;/cfoutput&gt;&lt;br&gt;&lt;br /&gt;&lt;br /&gt;You use the Evaluate function if you have a variable (var1) that contains the name of a variable (var2), and need to get the value of var2, as in the following example:&lt;br /&gt;&lt;br /&gt;&lt;cfset var1=&quot;var2&quot;&gt;&lt;br /&gt;&lt;cfset var2=&quot;3&quot;&gt;&lt;br /&gt;&lt;cfoutput&gt;#Evaluate(var1)#&lt;/cfoutput&gt;&lt;br /&gt;&lt;br /&gt;Evaluate can also be useful in complex cases, where other techniques could result in convoluted code.&lt;br /&gt;&lt;br /&gt;For information on the Evaluate function and how you can avoid using it, see http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/exprea29.htm and the pages that follow it. (Click the right arrows at the top or bottom of the page.)</description>
		<dc:creator>halL</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2004-04-15T14:37:15</dc:date>
	</item>
	</rdf:RDF>

