Workflow Action - If/Else
The If/Else workflow action allows you to route contacts through different paths based on defined conditions. With the latest enhancement, you can now use Dynamic Custom Values in…
The If/Else workflow action allows you to route contacts through different paths based on defined conditions. With the latest enhancement, you can now use Dynamic Custom Values in If/Else conditions to compare live values from earlier workflow steps or stored fields—eliminating the need to hard-type values and reducing duplicate logic. What Is the If/Else Workflow Action?
The If/Else action evaluates contact-specific data and splits a workflow into multiple branches based on whether conditions are met. Each branch represents a logical path that a contact follows depending on the outcome of the condition check. This makes it possible to create personalized, data-driven workflows that adapt dynamically to a contact’s behavior, attributes, or calculated values.
Key Benefits of the If/Else ActionConditional Logic: Route contacts down different paths based on real-time dataAutomation Efficiency: Reduce manual sorting and duplicate workflow stepsScalable Segmentation: Handle complex branching logic as workflows growVisual Clarity: Clearly see and manage decision points in the workflow builderHow to Use the If/Else Action
- Add the If/Else ActionOpen your workflow.Click the + icon to add a new action.Select If / Else from the action list.
- Choose a Logic Setup MethodYou can either:Build logic manually using Build My Own, orStart from a prebuilt recipe with common conditions.
- Configure the First BranchSelect the field you want to evaluate.Choose the appropriate operator.Set the comparison value.Click Add Segment to add additional conditions.Use AND / OR to control how conditions are grouped.
- Add Additional Branches (Optional)Click Add Branch to define more condition groups.Each branch represents a separate path in the workflow.
- Configure the “None” (Else) BranchThe None branch is created automatically.It runs when no defined conditions are met.This branch does not support conditions and cannot be removed.You can rename it and add fallback actions.Using Dynamic Values in If/Else Conditions You can now use Dynamic Values on the right-hand side of If/Else conditions. This allows you to compare live values—such as outputs from earlier workflow steps or stored fields—without hard-coding numbers or text.This enhancement lets you branch directly on values that were calculated or captured upstream.You can select Company fields in If/Else conditions when building a contact-based workflow. Company fields appear alongside contact fields in the field/variable picker.Important: Company fields resolve only when the contact is associated with a company. If the contact has no associated company, the value is blank.
Example
Use CasesRoute contacts based on Company Address (for example, by state or region). Branch based on Company Name to apply different logic for specific accounts. Supported Field TypesDynamic Values are supported for the following condition types in If/Else actions: Numeric – scores, counts, totalsDate – appointment dates, renewal datesSelect / Dropdown (advanced – requires option IDs)Monetary – invoice totals or amountsHow to Use Dynamic ValuesAdd an If/Else action to your workflow.
Configure the left-hand field as usual. In the right-hand input, switch the value type to Dynamic Value. Select a value from: An earlier workflow step output, orA stored field. Choose the appropriate operator (number, date, or value).
Save and publish the workflow. Important Note for Select / Dropdown FieldsSelect / Dropdown fields require option IDs, not display names, when used with Dynamic Values in If/Else conditions. In many cases, these IDs can be found in settings (for example, Pipeline IDs or Stage IDs).
Example
Use CaseWhen a proposal value is captured earlier in the workflow, you can compare that value dynamically. If the amount is $25, 000 or more, route the contact to a priority path; otherwise, continue with the standard process. Action DetailsFieldDescriptionRequiredAction NameLabel used to identify the action in the workflowYesConditionThe rule evaluated to determine the branchYesBranchesWorkflow paths created by the If/Else actionYesSegmentsGroups of conditions combined using AND / OR logicNoExample: Follow-Up Based on Email EngagementScenario: You want to follow up differently based on whether a contact opened an email.
Workflow Logic: Trigger: Promotional email sentIf/Else Condition: Email Event → Is OpenedYes Branch: Send thank-you email with an offerNo Branch: Resend the email with a different subject lineThis ensures follow-ups are relevant to each contact’s engagement.
Frequently Asked Questions
Q: How can I control when the If/Else condition is evaluated? Insert a Wait action before the If/Else step. You can wait for an event or a timeout (for example, “Wait until email is opened OR 1 day passes”) before evaluating the condition. Q: Can I edit a branch after it’s created?
Yes. You can update fields, operators, and values before or after publishing the workflow. Q: Is the None branch required? Yes.
It is created automatically and cannot be removed.
Can't find what you need? Log in and use the in-app chat, or talk to our team.