Home / lang / try 
TRY
Syntax
TRY Statement

Tries to execute a statement, without raising an error.

Use ERROR just after to know if the statement was executed correctly.

Examples

' Remove a file even if it does not exist
TRY KILL FileName
' Test if it has succeeded
IF ERROR THEN PRINT "Cannot remove file"

See also

Error Management  ERROR