Abort [what:Str]

Abort script with an error. The result is the same as if you had an error in your script, e.g. a division by zero or use of an undefined variable.

If there is a surrounding Try block, execution will resume in its Else part (or after its EndTry if there is no Else). Otherwise, the script will stop, with the error message printed on the console.

See also: Elementary Commands