If you're doing a large comparison set, my understanding is that switch
is better for performance.

As for cfset vs cfparam, cfset sets the variable and overwrites and
previous value that the variable held. Cfparam sets the variable if it
doesn't already exist. Basically, cfparam ensures that the variable has
a value when you try to use the variable, however, if the variable is
set elsewhere prior to the cfparam, the cfparam is ignored. 


John Burns
Certified Advanced ColdFusion MX Developer
Wyle Laboratories, Inc. | Web Developer
 

-----Original Message-----
From: Paul Ihrig [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 01, 2006 3:55 PM
To: CF-Talk
Subject: cf:if/switch cf:set/param

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:241976
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