Link conditions are used to build conditional logic and alternate paths into a chain.
By default, a chain will continue to run so long as each previous command in the branch executed successfully; when a command fails, the chain will come to a stop. But you can change this behavior by double-clicking the link between nodes and selecting a different link condition.
- Select a chain in your workspace.
- Double-click the link between two nodes.
- Under Edit Link Condition, choose a behavior:
- Green (Success): The default condition. The next node will only run if the previous node executed successfully.
- Red (Failure): The next node will only run if the previous node failed.
- Yellow (Warning): The next node will only run if the previous node finished with a Warning status.
- Gray (Any status): The next node will always run, regardless of status.
- (Optional) Enable the Execute on Skip option to run the node when the previous node has been skipped. This can be used together with the other conditions.
Once selected, the link color will change to match the chosen link condition.
Example
To show how this works, let's look at the Load Data to Wdata chain template. In this template, the chain checks whether to replace or add a dataset — but regardless of which option is chosen, the result text is always set at the end.
In particular:
- If the "Conditional" node at the top is successful, then the chain will progress down the green branch on the left.
- If the "Conditional" node at the top fails, then the chain will progress down the red branch on the right.
Regardless of which branch is triggered, the Set Result Text node at the bottom will execute because the gray Any link condition has been selected.