The mgiAbort Tag

Tag Behavior

Use the mgiAbort tag completely stops the processing of the page including MGI tags, text and HTML. When the mgiAbort tag is processed by MGI, any part of the page processed prior to the mgiAbort tag is served to the browser. (see also mgiStop)

Tag Syntax

The mgiAbort tag has no required parameters and no optional parameters. The tag form is:


Required Parameters:

  • None.

Optional Parameters:

  • None.

Example Usage and Output

<mgiIf lhs={mgiGet name="Errors"} relationship="isNotEmpty">

In this example, the mgiAbort tag is used to abort a page after checking for errors using a conditional statement. Notice that ending Body and HTML elements are entered before the mgiAbort tag since the mgiAbort tags stops all processing of the page which may affect how the browser displays the information.

Suggested Usage

  • Error Checking

[Understanding MGI Menu] [Using MGI Menu] [Referencing MGI Menu]

[MGI Guides Main Menu] [User Guide Main Menu]