Afaik, with the <cfparam name="URL.id" default="0" type="numeric"> if URL.ID is passed in as 8nb3b23k then it will throw an error, where as the if not defined or not numeric code will still run...
HTH -----Original Message----- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: Friday, April 4, 2003 15:29 To: CF-Talk Subject: cfparam Anyone else thing cfparam would be more useful when if using it like this... <cfparam name="URL.id" default="0" type="numeric"> ...was the same as using... <cfif NOT IsDefined("URL.id") OR NOT IsNumeric(URL.id)> <cfset URL.id = 0> </cfif> ...so the param kicks in if URL.id isn't defined OR if it isn't a number? I'd never really used the type attribute in cfparam before and I was hoping this was the way it worked. Oh well :O( Adrian Lynch Web Developer Thoughtbubble Ltd ---------------------- United Kingdom http://www.thoughtbubble.net Ph: +44 (0) 20 7387 8890 ---------------------- The information in this email and in any attachments is confidential and intended solely for the attention and use of the named addressee(s) . Any views or opinions presented are solely those of the author and do not necessarily represent those of Thoughtbubble. This information may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority. If you are not the intended recipient, you are not authorised to disclose, copy, distribute, or retain this message. Please notify us on +44 (0) 20 7387 8890 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

