EM

From STX Wiki
Jump to navigationJump to search

EM

A shorthand way to display an error message and exit a macro.

Usage:

EM [ eCode [ eLevel ]] ; [ eMessage ]

Parameters:
eCode
The error code to display (default = -1). This code is also returned to the caller.
eLevel
The number of macro levels to exit. This value includes exiting the EM macro itself. The default is 2 (i.e. the calling macro is exited).
eMessage
The message to display in a dialog box.
Result:

The value of eCode

Examples:
em $rc ; Failed to do whatever the previous command was trying to do

Navigation menu

Personal tools