<cfparam name="stop" default=false>

<cfif records is 0>
        <cfset stop = true>
        ... some code...
</cfif>
<cfif NOT stop>
  .... more code ....   
</cfif>

-----Original Message-----
From: Phillip Perry [mailto:[EMAIL PROTECTED]
Sent: Monday, October 25, 2004 12:24 PM
To: CF-Talk
Subject: using cfabort in an include....


I'm using cfinclude. inside the included file that has some code that I want
to stop being processed if there is an error. Like this,

<cfif records IS 0>
....some code...
</cfabort>
</cfif>
....more code....

But the problem is that the cfabort not only stops that code in the include
file its stopping the code in the calling template. Is there a way to
confine the abort to the included file only and leave the template thats
calling it alone?






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Sams Teach Yourself Regular Expressions in 10 Minutes  by Ben Forta 
http://www.houseoffusion.com/banners/view.cfm?bannerid=40

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