In a custom tag you could use cfexit, but since you're in a cfinclude you'll need to put everything in a cfelse: <cfif records IS 0> ....some code... <cfelse> ....more code.... </cfif>
HTH Bert On Mon, 25 Oct 2004 12:23:45 -0400, Phillip Perry <[EMAIL PROTECTED]> wrote: > 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? > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=38 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182519 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

