Abort
Tests for a parameter's existence, tests its data type, and, if a default value is not assigned, optionally provides one.
Component Signature
Attributes
Atrribute
Type
Required
Description
Default
showerror
string
false
Whether to show an error
type
string
false
The type of the abort (request or page)
request
Examples
Example of using abort() to stop processing after an error occurs
In this example we demonstrate using the abort() function to stop any further processing after we deliberately call a non-existent function.
Result: Error page: Variable USERSERVICE is undefined.
Example of using bx:abort to stop processing after an error occurs
In this example we demonstrate using the bx:abort tag to stop any further processing after we deliberately call a non-existent function.
Result: Error page: Variable USERSERVICE is undefined.
Last updated
Was this helpful?