Conditional Node
Conditional Node
Conditional Nodes are extremely powerful because they can help you diverge the execution path of your Workflow based on the results of an upstream node. The Conditional Node supports as many if-else-if conditions as you’d like and the rules can be grouped / nested within each other.
The number of exit options from a conditional node equal the number of if-else-if conditions created on the node
Tip - Equality Checking Templating Nodes
See our tips about invisible whitespace in Jinja
The issue in the above check is that we’re not using the Jinja2 syntax to remove unintentional whitespace: {%-
and {{-
rather than {%
or {{
You can see here that adding the -
character fixes the issue and gets the correct branch to execute after the conditional.