Skip to main content

How do I use the 'Branch' action in an automation?

This article explains how to route contacts with 'If/Else' or 'Multi-branch', set conditions, and test paths.

Written by Team MailBlue
Feature available from the Plus subscription

​

​With the 'Branch' action, you direct contacts down different paths in your automation based on the conditions you set. Choose 'If/Else' for a decision with two outcomes or 'Multi-branch' to route contacts based on field values, tags, lists, or segments.

​

​

What should I keep in mind?

Keep the following points in mind before adding a branch:

  • Existing 'If/Else' actions retain their 'Yes' and 'No' paths.

  • With 'Multi-branch', you can set up one to ten condition paths, followed by the 'No Match' path.

  • The same criteria type and operator apply to all paths within 'Multi-branch'.

​

Which branch type should I use?

Use 'If/Else' when you need one set of conditions with two outcomes. Contacts who meet the conditions take the 'Yes' path. All other contacts take the 'No' path.

​

Use 'Multi-branch' when you need several outcomes within one action. For example, route contacts based on a field that stores their product interest.

​

Note: paths are checked from top to bottom. A contact takes only the first path whose conditions they meet. If a contact matches none of the conditions, they take 'No Match'.

​

​

How do I add an 'If/Else' action?

Use this option for a decision with two outcomes:

  1. Click 'Automations' and open the automation you want to edit.

  2. Click the plus sign (+) where you want to add the action.

  3. Click 'Workflow' and then 'Branch'.

  4. Click 'If/Else'.

  5. Set your conditions in the segment builder.

  6. Click 'Save'.

  7. Add actions under the 'Yes' and 'No' paths.

​

Note: if 'If/Else' still appears directly in your action menu, select it to open the two-path setup.

​

​

How do I add a 'Multi-branch' action?

Use this option to route contacts into several groups:

  1. Click the plus sign (+) where you want to add the action.

  2. Click 'Workflow' and then 'Branch'.

  3. Click 'Multi-branch'.

  4. Choose 'Based on field values', 'Based on tags', 'Based on list', or 'Based on a segment'.

  5. Choose the operator that applies to all paths. For field values, also select the field.

  6. Set a value, tag, list, or segment for each row.

  7. Click 'Add a branch' to add more paths (up to ten condition paths).

  8. Drag the rows into the desired order.

  9. Click 'Save'.

  10. Add actions beneath each path, including 'No Match'.

​

Important: before you can save, every row must have a value, tag, list, or segment. You cannot use the same target for two rows. 'No Match' is added automatically and always stays last.

​

​

Which criteria can I use?

Each 'Multi-branch' action uses one type of criteria. Choose the type before setting up the paths.

​

Field values
Select one field and choose 'is equal to' or 'is not equal to'. Set a different value for each path.

​

For example, use a product-interest field with the values 'Roses', 'Tulips', and 'Lilies'. With 'is equal to', a contact with a different value takes the 'No Match' path.

​

Tags
Choose 'Tag exists' or 'Tag does not exist'. Select a different tag for each path.

​

Tip: a contact can have more than one of the selected tags. Place the tag with the highest priority first.

​

Lists
Choose one list status and select a different list for each path. Available criteria cover active and inactive subscriptions, unsubscribed contacts, unconfirmed contacts, hard bounces, contacts added to a list, and contacts never added to a list.

​

Note: being added to a list does not automatically mean a contact has an active subscription.

​

Segments
Choose 'is in segment' or 'is not in segment'. Then choose 'Select an existing segment' or 'Configure segment' for each path. With 'Configure segment', you define the conditions for that specific path.

​

Note: an existing segment remains linked to the branch. If you edit this shared segment later, the contacts who match the branch may change.

​

​

How do I determine the order of the paths?

Path order matters when a contact can match more than one branch. Place the path you want the contact to take first.

​

For example, suppose a contact has both the 'Customer' and 'Newsletter' tags. With 'Tag exists', place 'Customer' first if customers should take that path. The contact will not also take the 'Newsletter' path during that visit to the action.

​

Important: review negative conditions carefully. With 'Tag does not exist', a contact takes the first path whose tag they do not have.

​

The 'No Match' path handles contacts who match none of the conditions. If a condition check fails, the contact is not sent down this path.

​

​

How do I edit and test the paths?

Open the saved action to edit its conditions or path order.

​

Important: you cannot convert a saved 'If/Else' action into 'Multi-branch', or vice versa.

​

Test each condition path and the 'No Match' path. Include a test contact who matches more than one path so you can check the order.

​

Tip: when testing email activity, give the contact enough time to open the email or click a link before they reach the 'Branch' action.

​

View the contact's automation path to check which branch they took.

​

​

Frequently asked questions

How many paths can you set up with 'Multi-branch'?

You can set up one to ten condition paths. The 'No Match' path is automatically added last.

Can a contact take multiple paths?

No. During each visit to the action, a contact takes only the first path whose conditions they meet. Paths are checked from top to bottom.

Can you combine different criteria types?

No. You use one criteria type and one operator for all paths in an action.

What happens if a contact matches none of the conditions?

The contact takes the 'No Match' path. This does not apply if a condition check fails.

Can you convert an existing 'If/Else' action into 'Multi-branch'?

No. You cannot change the type of a saved action. You can edit its conditions or path order.

Did this answer your question?