Try using <CFEXIT>

HTH



-----Original Message-----
From: Louis Klepner [mailto:[EMAIL PROTECTED]] 
Sent: 28 February 2002 13:38
To: CF-Talk
Subject: CFABORT template, not all CF processing?


Sorry about that last one, I guess it's dangerous to hit tab and enter
rapidly...

I was wondering if there is a way to abort a particular CF Template, but
not all CF processing? Right now I'm wrapping my code with CFIF tags
which determine if the code will run or not.

<CFIF animal IS "dog">
        run a bunch of code
        run a bunch of code
        run a bunch of code
        run a bunch of code
        run a bunch of code
</CFIF>
<!--- end of template --->


I'd rather do this:

<CFIF animal IS NOT "dog">
        <CFABORT>
</CFIF>

But I don't want to abort ALL cf processing, only the template that it
currently running... Is this an option?

Thanks, and sorry again about the first draft of this email-

Lou

______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to