ERROR

ERROR

Returns if there was an error.

Use it just after a TRY instruction to know if the executed instructions failed.

To get more information about the error, use the Error class.


Example

TRY KILL FileName
IF ERROR THEN PRINT "Cannot remove file. Error ="; Error


See also

FINALLY, CATCH, TRY