A laptop showing a workflow in MarTech by Ajax Union, where a contact enrolled by mistake is removed from a waiting step, with cards confirming no more emails will be sent and Do Not Disturb turned on.

How to Branch a Workflow With If/Else So Each Audience Gets the Right Message

November 27, 2026•5 min read

Most automations start simple: one trigger, a few emails, done. But your contacts aren't all the same. A past client and a brand-new lead shouldn't get the same follow-up, and someone who already booked a call doesn't need another reminder to book one.

That's where the If/Else action comes in. In MarTech by Ajax Union, If/Else lets one workflow check each contact against a rule and send them down the path that fits. You can tag everyone the same way at the start and still send different messages to different groups.

This guide walks you through how to set it up in app.ajaxunion.com, with two examples you can copy.

What the If/Else Action Does

When a contact reaches an If/Else step, the workflow checks their data, such as a tag, a contact field, an appointment status or an email event. Based on the result, it sends them into a matching branch.

Each branch is its own path with its own actions. You can have several branches, and there's always a None branch that catches anyone who doesn't match a condition.

A few reasons to use it:

  • Fewer duplicate workflows. One workflow with branches replaces several near-identical ones.

  • More relevant messages. Each segment hears what applies to them.

  • Easier to manage. You can see every decision point in the workflow builder at a glance.

Before You Start: Decide What You're Branching On

Pick the one thing that separates your audiences. Common choices:

  • A tag, such as "past-client" or "VIP"

  • A contact field, such as location, job title or lead source

  • An email event, such as whether they opened your last email

  • An appointment status, such as booked, showed or no-show

If the information you need isn't on the contact yet, add a tag or field earlier in the workflow so the If/Else step has something to check.

How to Add an If/Else Branch to a Workflow

  1. Log in at app.ajaxunion.com.

  2. In the left menu, go to Automation → Workflows and open the workflow you want to edit.

  3. Click the + icon where you want the split to happen.

  4. Select If / Else from the action list.

  5. Choose Build My Own to set up your own logic, or pick a prebuilt recipe with common conditions.

  6. Give the action a clear name, such as "Check: Past Client?", so the workflow is easy to read later.

  7. Set up your first branch:

    1. Select the field you want to check. You can search the field picker instead of opening each folder.

    2. Choose an operator (for example, "includes" or "is").

    3. Enter the value to compare against.

  8. To check more than one thing in the same branch, click Add Segment and use AND (all conditions must match) or OR (any condition can match).

  9. To create another path, click Add Branch and set its conditions.

  10. Set up the None branch. It's created automatically, runs for anyone who doesn't match a branch, and can't be removed. You can rename it and add fallback actions.

  11. Add the actions you want under each branch, such as emails, texts, tags or pipeline moves.

  12. Save the workflow, test it with a sample contact, and switch it to Publish when it works as expected.

Example 1: Let One Segment Skip an Email

Say you send a sequence to everyone who registers for an event, but your existing clients shouldn't get the "Here's what we do" introduction email.

  1. Tag every registrant the same way at the start, for example "event-registrant".

  2. Before the introduction email, add an If/Else step.

  3. Branch 1: Tag includes "past-client". Skip the introduction and send a short "Great to see you again" note instead.

  4. None branch: everyone else gets the standard introduction email.

You can take this further and build a dedicated sequence for one segment that starts from the same event, such as a booked meeting. Either way, everyone is tracked the same way, and each group still hears the right message.

Example 2: Follow Up Based on Whether They Opened

You want to follow up differently depending on whether someone opened your promotional email.

  1. Send the promotional email.

  2. Add a Wait step: wait until the email is opened, or 1 day passes.

  3. Add an If/Else step with the condition Email Event → Is Opened.

  4. Opened branch: send a thank-you email with the offer.

  5. None branch: resend the email with a different subject line.

The Wait step matters. Without it, the If/Else step checks right away, before anyone has had a chance to open the email.

Go Further: Compare Against Dynamic Values

Instead of typing a fixed value, you can compare a condition against a Dynamic Value, such as an amount captured earlier in the workflow or a value stored on the contact.

For example, if a proposal amount is captured earlier in the workflow, you can send anything of $25,000 or more down a priority path and everything else through your standard process.

To use one, switch the right-hand input in your condition to Dynamic Value and choose an earlier workflow step output or a stored field. Dynamic Values work with numbers, dates, money amounts and dropdown fields. For dropdown fields, you'll need the option's ID rather than its display name.

Tips for Clean Branching

  • Name every branch. "Opened" and "Didn't open" are easier to read than "Branch 1" and "None".

  • Put a Wait step before the check whenever the condition depends on something the contact still needs to do.

  • Test with a sample contact for each branch before you publish.

  • Company fields only work for contacts linked to a company. If a contact has no company, that value is blank, and they'll go to the None branch.

  • You can edit branches anytime, before or after publishing.

Branching is worth adding to most of your automations, because you're almost always speaking to more than one kind of audience.

Want to see MarTech in action? Book a live demo and our team will walk you through it.

Back to Blog