TAG:CFABORT

last edited byusericondenny on 01-Oct-2011

Contents

Return to Tags or Functions

cfabort

Syntax

<cfabort
	[showerror="string"]
	[type="string"]>

This tag is also supported within cfscript.

<cfscript>
  abort [string expression];
</cfscript>

[] = Optional attribute

Description

Stops processing of a page at the tag location. CFML returns everything that was processed before the cfabort tag. The cfabort tag is often used with conditional logic to stop processing a page when a condition occurs.

Body

This tag can't have a body.

Attributes

The attributes for this tag are fixed. Except for the following attributes no other attributes are allowed.

Name Type Required Description
showerror string No The error to display when cfabort executes.
The error message displays in the standard CFML error page.
type string No define if only current page execution will aborted or the hole request.
values are "page" for the curretn page or "request" for all.

 
Download in other Formats:
markup Markup | pdf PDF | html HTML | word Word