Escape Code Constants

Command

Not Applicable

Description

The Escape Code Constants block is used for identifying an Escape Code in the "Recover" block list of a Try Recover block. Rather than referring to escape code numbers the Escape Code Constants provide meaningful names that help explain the nature of the error.

Escapes

The Escape Code Constants block does not produce any escapes.

Examples

This block list checks if a speed setting is beyond the maximum speed for an axis:

If too large a value is put into the speed editor this is the result:

However if a value that is not numeric is typed in the "else" case shows this unhandled error:

By checking an additional Escape Code Constant this case can also be handled:

If a value that is not a number is entered the response is now this:

Related Topics

Try Recover
Escape
Escape Code