But why would you? Cfreturn ends the processing. I would generally only
ever use a cfabort when debugging or in case of some fatal error.  

-----Original Message-----
From: Mike | NZSolutions Ltd [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 6 December 2005 3:01 p.m.
To: CF-Talk
Subject: cfabort

Hi guys,

Just a quick question, is it good practice to use a cfabort in a .cfc
file?

Basically...

<cfif a = b>
        <cfreturn 1/>
        <cfabort>
<cfelseif a = c>
        <cfreturn 0/>
        <cfabort>
<cfelse>
        <cfreturn -1/>
</cfif> 

mike

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226139
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