Conditions flags indicate the condition upon which a particular command stops running. Then commands are executed, return codes report if they succeeded or failed. The standard return codes are:
Other values may be returned by applications. In such cases, the previously listed values are considered lower limits of the specified condition as follows:
Some commands, such as ASK and SEARCH, use the WARN flag to signal certain conditions for testing in scripts.
For example, in the COPY script on page 5-12, the ASK command requests confirmation to continue the copy:
ASK "Continue Copy?"
IF WARN
COPY 3a.eps DF0:
Pressing y sets the condition flag to 5 (WARN), executing the IF block. Pressing N or Return sets the condition flag to 0 (NO ERROR), aborting the script because the IF statement did not receive the specified return code.