%LastErrorNum%

If an error is generated by an action at run time, this variable is set to an action-specific error number that identifies the last error that occurred.

When an action does not generate an error, this variable is set to 0.

 SEE ALSO 

 

 

 

?

For a complete list of the error numbers associated with an action, see that action's help topic in the Command Reference.