Connect:Direct for Microsoft Windows Conditional Statements
Conditional statements alter the sequence of IBM® Connect:Direct® Process execution based on the completion of the previous step in the Process. For example, if a file copy fails, the Process may call an external program to generate a console message and stop the Process. If the file copy succeeds, the Process continues with the next step.
The following is the Connect:Direct for Microsoft Windows Conditional statement format. Refer to Connect:Direct for Microsoft Windows Process Parameters for more information.
Label | Statement | Parameters |
---|---|---|
optional | if | (label condition nn) then |
(process steps executed if condition is true) | ||
else | ||
(process steps executed if condition is false) | ||
eif | ||
optional | goto | label |
exit |