<cfset> always sets the value
<cfparam> only sets the value if it is undefined (not blank, but truly
undefined).

For me, <cfif> and <cfswitch> is a matter of coding style. In other
languages, you could have multiple valid cases, and it would go
through all valid cases, but CF only finds the first valid case.
<cfswitch> is supposed to be faster.

What is a variable pool? A "scope"?

On 6/1/06, Paul Ihrig <[EMAIL PROTECTED]> wrote:
> ok.
> just looking at a bunch of code.
>
> most pages use a combo of if & switch
> what are the reasons to use one over the other.
>
> also what is the difference between cfset & cfparam.
> i know cfset sets the variable you want to be
> but dosnt cfparam also do this?
>
> also what should i know about variable pools?
>
> thanks
> -paul
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241975
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to