Creating Conditional Statements
About this task
Conditional statements are used to branch processing within a Process, based on the result of a previous Process step. For example, when a Process performs a file copy, a conditional statement can test if the copy was successful. If the copy was successful, the Process continues processing subsequent statements. If the copy was unsuccessful, the Process can call a user-defined program that sends an error to the console operator and stops processing.
Conditional statements test against the completion code of a previous step. Conditional statements can be nested so that a Process can test for multiple results and react accordingly.
This procedure shows how to create a simple conditional statement that tests if a copy was successful. If the copy was successful, the Process executes the next statement. If the copy was not successful, the Process executes a Run Task that calls another program.