If Else Condition
Overview
The If/Else Condition node helps you create conditional logic branches in your workflow. It checks a condition you define and then decides which path to take — True or False — based on the result.
This allows you to make your workflow “think” and automatically handle different situations. For example, you can send a message only if the sender’s email matches a specific address, or trigger a notification only if a value meets certain criteria.
Description
Control workflow decisions based on data.
This node compares one piece of data (like an email address, name, or number) against a value you choose. Depending on whether the condition is true or false, the workflow continues along the True path or the False path.
True Path
The workflow follows this path if the condition is met (e.g., Email equals "admin@example.com").
False Path
The workflow follows this path if the condition is NOT met.
It’s commonly used to filter data, control decisions, and automate actions based on user input.
Input Parameters
The If/Else Condition node accepts settings to define the comparison logic.
Source NodestringRequired"Send Mail"ParameterstringRequired"senderEmail"OperatorstringRequired"Equals", "Not Equals", "Contains", "Greater Than"ValuestringRequired"admin@example.com"Node DescriptionstringOptional"Check if sender is admin"Output Parameters
The node returns a boolean result indicating which path was chosen.
conditionbooleanOptionaltrueNext StepstringOptional"Send Welcome Email"- True: The condition matched. Workflow follows the True path.
- False: The condition did not match. Workflow follows the False path.
Output Type
Output Type: Boolean
The output is a simple true or false value that determines the immediate next step in the workflow execution.
Example Usage
Example 1: Check Sender Email
Verify if an email comes from a specific address.
{ "sourceNode": "Send Mail", "parameter": "Input: senderEmail", "operator": "Equals", "value": "admin@worqhat.com"}
{ "condition": false, "Next Step": "Return to Default Path"}
Explanation: The sender was not "admin@worqhat.com", so the result is False.
Example 2: Match User Name
Check if the user's name is "Alex".
{ "sourceNode": "User Info", "parameter": "Input: userName", "operator": "Equals", "value": "Alex"}
{ "condition": true, "Next Step": "Send Welcome Email"}
Explanation: The name matched "Alex", so the result is True.
How to Use in a No-Code Workflow
Add the Node
Drag and drop the If/Else Condition node into your workflow editor.
Connect Source
Choose the previous node that provides the data to check (e.g., "Send Mail").
Select Parameter
Pick the data field to evaluate (e.g., senderEmail).
Define Condition
Select an Operator (e.g., Equals) and set a Value to compare against.
Connect Paths
Connect the True path to the action for a match, and the False path for no match.
Run Workflow
Run the workflow. The node will automatically route execution based on the result.
Best Practices
- Use clear, descriptive names for your nodes to make the logic easy to follow.
- Double-check that the parameter exactly matches the field name from your source node.
- Always test your workflow with both True and False outcomes.
Do / Don’t
- ✔️ Use
Containsfor partial matches (e.g., checking if email contains "@gmail.com"). - ✔️ Group related conditions together for complex logic.
- ✔️ Handle the False path gracefully (e.g., log an error or end the workflow).
- ❌ Don’t forget that string comparisons can be case-sensitive.
- ❌ Don’t leave the False path disconnected if an action is required in that case.
- ❌ Don’t compare incompatible types (e.g., text vs number) without verifying formats.
Common Errors
Parameter not foundErrorOptionalInvalid OperatorErrorOptionalValue missingErrorOptionalAlways FalseWarningOptionalExample Workflow Integration
Use Case 1: Email Filter
Auto-reply only to specific senders.
- Trigger: Receive Email.
- If/Else Node: Check if
senderEmailequalsvip@client.com. - True Path: Send "Priority Response" email.
- False Path: Send standard auto-reply.
Workflow Data Flow:
{{email.sender}} → {{ifElse.parameter}}
Use Case 2: VIP User Check
Grant access based on user status.
- Fetch Data: Get user profile.
- If/Else Node: Check if
planequalspremium. - True Path: Unlock exclusive content.
- False Path: Show upgrade prompt.
Workflow Data Flow:
{{user.plan}} → {{ifElse.parameter}}
