Yep and there are some exceptions to tags as well.

 

For example

 

<cfoutput query="queryName">

</cfoutput>

 

Notice no #'s as the tag will evaluate the variable

 

 

-- 
Senior Coldfusion Developer
Aegeon Pty. Ltd.
 <http://www.aegeon.com.au/> www.aegeon.com.au
Phone: +613 9015 8628
Mobile: 0404 998 273

 

 

 

From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Taco Fleur
Sent: Tuesday, 2 September 2008 3:41 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: variables in cf

 

Hi,

 

That's incorrect, you'd use ## for example if you need to evaluate a
variable in a string, like so

 

<cfset myVar = "Some text #variables.myVariable# more text" >

 

Following does not need ## around a variable 

 

<cfset myVar = variables.myVariable >

 

Passing them into a function does not require pound signs, but passing them
into tags does.

 

On 9/2/08, nedlud <[EMAIL PROTECTED]> wrote: 


Hi all,

I've been in my current job for just over a year, which means I've
been using coldfusion for just over a year, and I'm still learning how
to use it.

One thing that I keep tripping over is how to handle variables. I'm
forever forgetting the goofy ## bits around them.

But it just occurred to me that is (or might be) a simple way for me
to remember.

## goes around variables passed by value.

Variables passed by reference have no ##.

Is this correct? Or am I just going to confuse myself more by thinking
this way?




-- 
Try advertising on the new Australian Business Directory
www.clickfind.com.au
blog: http://australiansearchengine.wordpress.com/
Web Designers > http://www.web-designers-australia.com 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to