Including logic flow statements in a script

You can use conditional logic flow statements that are based on return codes that are issued from previous command processing. By using these logic statements, you can process your scripts according to the outcome of certain commands. You can use IF, EXIT, or GOTO (label) statements.

As each command is processed in a script, the return code is saved for possible evaluation before the next command is processed. The return code can be one of three severities: OK, WARNING, or ERROR. Refer to Administrator's Reference for a list of valid return codes and severity levels.