You could rewrite the loop twice, once for each variable name (probably
not best), or you could try an iif() in the query="" and based on
isdefined("session.cache_query") use the appropriate query variable.~Brad -----Original Message----- From: Terry Ford [mailto:[EMAIL PROTECTED] Sent: Thursday, January 05, 2006 8:35 AM To: CF-Talk Subject: Re: Avoiding copying by value >You can use duplicate, but why not reference session.cache_query? > >bob To repeat: "I know that I could do <Cfloop query="session.cache_query">, but then the Google "q" query wouldn't work. I really want to be able to reference either the cached query or the runtime query by the same variable name, "q". " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228462 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

