Flow Basics
If-Else
This document explains the If-Else node, which creates conditional branches in your workflow based on specific conditions.
Node Inputs
Required Fields
- Condition Type: The type of comparison to make
- Condition Value: The value to compare against (when applicable)
Optional Fields
- Pass Inputs Through: Makes input values available as outputs
Node Output
- Evaluated Condition: Boolean (true/false) result of the condition
- Pass Through Values: Values for both conditions
- Inputs: Inputs of the wrapped node [If enabled]
Node Functionality
The If-Else node is like a traffic controller for your data. It:
- Wraps around other nodes
- Evaluates their outputs
- Creates two possible paths (true/false)
- Routes data accordingly
Common Use Cases
- Error Handling:
- Data Validation:
- Threshold Routing:
Step-by-Step Usage
- Drag If-Else onto canvas
- Place target node inside
- Set condition type
- Connect true/false outputs
- Test both paths
Additional Information
In summary, the If-Else node lets you create smart, branching workflows that make decisions based on your data conditions.