Try command Try commands Else commands EndTry
Catch errors. The commands after the Try are executed. If any command produces an error, either by doing something bad such as dividing by zero or using an undefined property, or by using the Abort command, the Else part is executed. If there is no Else part, the error is silently ignored.
In any case, the error message is assigned to the System.Err variable where it can be examined.
Version Differences: In PCC 1.x, System.Err is a global property. In PCC2, System.Err is a global variable, and you can define a local version of it to avoid modifying the global one.
See also: Elementary Commands