---- Michael Grant <mgr...@modus.bz> wrote: 
> 
> I prefer to CFParam my vars with a default value of a zero len string or a 0
> for numeric values. Then I skip the isdefined and just test against the
> value. Well recently someone I know said that it's better to test if it's
> defined. Is there a pro or con to doing it my way vs. IsDefined ?

I would use cfparam out of convenience and flow. If you use the incoming 
parameter several times, you don't have to test it but once with cfparam.
I'm lazy.
--
LinkedIn: http://www.linkedin.com/pub/roger-austin/8/a4/60
Twitter:  http://twitter.com/RogerTheGeek
Blog:     http://rogerthegeek.wordpress.com/
http://www.misshunt.com/ Home of the Clean/Dirty Magnet


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336721
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to