Conditional Node
Last updated
Last updated
The conditional node enables dynamic decision-making and branching logic within workflows. It allows workflows to evaluate specific conditions or rules and execute different paths based on the outcome.
In the risk analysis example above, the workflow input is passed to a senior analyst model. Based on the determined risk and reward, different actions are taken. If the risk is low enough, a draft proposal is be generated. If the risk is too high, more analysis can be run. If the risk to reward ratio is in the middle, more research can be done with integrations. If the ratio falls outside expected boundaries, company policies can be searched to determine the right course of action.
Each condition has a name and the set of criteria which define it. You specify a variable from an earlier step in the workflow, the condition, and the value to compare it against. Values can be strings or integers/floats depending on which condition is selected. For a single condition, you can specify multiple criteria using and
or or
.
Once the conditions have been defined, the action which occurs for each condition can be specified within the conditional node, by setting Then:
or you can drag a connection line to your next node.
==
checks if the selected variable is equal to the provided value
!=
checks if the selected variable is not equal to the provided value
>
checks if the selected variable is greater than the provided value
<
checks if the selected variable is less than the provided value
>=
checks if the selected variable is greater than or equal to the provided value
<=
checks if the selected variable is less than or equal to the provided value
in
checks if the selected variable contains the provided value/text
not in
checks if the selected variable does not contains the provided value/text