IfElse Node
Overview
The IfElse Node enables conditional logic within workflows, allowing for decision-based branching. This node evaluates a user-defined condition and routes the workflow accordingly.
Configuration
Setting the Condition
The IfElse Node includes an input field where users specify the JavaScript condition:
- Condition Field: Allows for entering a JavaScript expression. The evaluation of this expression determines the subsequent flow direction:
- True: Executes the "if" branch.
- False: Executes the "else" branch.
Output
The IfElse Node features two distinct output handles for routing the workflow:
- If Output (Right Handle): Directs the flow to the next node if the condition is true.
- Else Output (Bottom Handle): Directs the flow to an alternative node if the condition is false.