Conditions Blocks

Conditions blocks check a contact's data or behavior against a rule and route them down a matching path in the workflow. Most blocks run a single check and split the workflow into two paths — Yes and No — based on the result. Split divides the workflow into up to 10 weighted branches, and Branch evaluates several rule sets top-to-bottom and sends the contact down the first one that matches.

Use Conditions blocks to make a workflow react to who a contact is and what they've done — for example, checking whether they opened a previous email, belong to a segment, made a purchase, or have a specific value in a custom field, then sending them down a different path accordingly.

Workflow editor with the Conditions category highlighted in the block panel and a Clicked? check splitting the workflow into Clicked and Not clicked branches

The Conditions group contains the following blocks, in the order they appear in the panel:

The following blocks cannot be attached to the Start block:

  • Sent?
  • Delivered?
  • Opened?
  • Clicked?

There's no way to launch a new workflow when a contact reads (opens) an email — an "email read" event isn't available as a workflow trigger. The closest available trigger is a link click, which starts a separate workflow via its own event rather than reacting within the same workflow.

Branch

The Branch block lets you define multiple alternative paths in one place. Instead of chaining separate Condition blocks, you add branches inside a single block and set rules for each — the system evaluates them top-to-bottom and sends the contact down the first branch whose rules match.

Branch rules can be based on the workflow parameter, a contact field, an external event, engagement with earlier Sending blocks, segment membership, current day/time, or channel availability. It's typically used to replace long chains of Condition blocks with one compact, easy-to-review decision point — for example, routing contacts by order value, favorite category, or channel availability.

More detailed information about the Branch block >

Check Values

The condition allows you to check:

  • Values ​​in event context parameters: for example, promo code type.
  • Values ​​in contact fields: for example, subscriber city.
  1. Click Select rule.
  2. Specify an event parameter and its value, or select a contact field from the list.
Check values block settings with the Select field dropdown open showing the Specify parameter field and the Contact fields list

Each individual rule has Duplicate Rule and Delete Rule buttons. Use them to copy a rule with all its settings or delete only the selected rule.

Check values block settings with the Duplicate rule and Delete rule icons highlighted next to the rule
  • You do not need to wrap the parameter name in ${}.
  • Event parameters can be passed in either numeric or string format.
  1. Select one of the available validation operators depending on the event parameter or field type.

    Check values condition panel showing the totalBonuses parameter with the operator dropdown open, listing equals, is true, is false, and other operators
    OperatorEvent parametersNumber field typeText field typeDropdown field type
    equals✓✓✓✓
    does not equal✓✓✓
    is false✓✓✓
    is true✓✓✓
    is set✓✓✓✓
    is empty✓✓✓✓
    contains✓✓
    does not contain✓
    starts with✓✓
    does not start with✓
    ends with✓✓
    does not end with✓
    one of✓✓✓
    is not one of✓✓
    matches✓✓
    between✓✓
    greater than✓✓
    greater than or equal✓✓
    less than✓✓
    less than or equal✓✓

The parameter name does not need to be surrounded by special characters ${}.

If a parameter is explicitly passed with the value null, the system treats it as filled with the value null rather than empty — so the is empty and is set operators won't behave as expected for it. To have a parameter correctly evaluate as empty, omit it from the request entirely instead of sending it as null.

A rule built on an event parameter works only while that parameter arrives in every event of this type. When the value you branch on is stored in the contact card, select a contact field in the rule instead of an event parameter.

You can add multiple checks using AND/OR logic — there is no limit to the number of conditions.
This allows you to avoid creating separate dynamic segments in the workflow.

To match one field against several values, use the one of operator and add each value as a separate entry. Listing values separated by commas in a single input does not work — the whole string is compared as one value and the condition never matches.

To see which values a custom field actually holds, open a contact profile and check the field in the contact card and on the tab with additional contact fields. Use those values in the condition: the comparison ignores case, but a value that differs in spelling is treated as a different value.

More about:

Split

The block is used to split-test messages. It splits the workflow into several branches (up to 10) and arbitrarily divides contacts between them. By default, the number of branches is 2, the probability of each of them being triggered is 50/50.

Contacts are distributed at random, so the actual split only approximates the ratio you set instead of matching it exactly.

Contacts are assigned to branches by random numbers, so the actual distribution is approximate rather than exact. On small volumes, the deviation is more noticeable: branches configured as 50/50 can produce, for example, a 58/42 result. The distribution evens out as the number of contacts grows.

Split block highlighted in a workflow dividing contacts 50/50 between two message variants, with the Split evenly toggle and part percentages in the settings

For example, you can create a workflow to test the effectiveness of two different communication channels or two campaign types within one channel by setting the same split percentage.

The above example is a workflow testing two message variants. Based on the set percentage, one half of your subscribers will receive one message, and the other half will receive another. Further analysis will help determine which variant is more effective.

Sent?

The Sent? block checks whether a message — or a chain of messages placed in the workflow before this block — was actually sent.

Sent?

The example above shows the workflow where the mobile push with the experimental recommendation algorithm is sent first. If there is no data to generate such recommendations, the message is not sent.

At the same time, in addition to the Delivered status, mobile push notifications also have the In Progress status. It can take a long time between sending and delivery, so the Delivered? check is unsuitable.

If the check shows the system did not send the first message, the workflow will send the second one with a universal recommendation algorithm.

For the check to work, the system needs time to register the fact of sending, so add a 5-minute Timer block before the check — contacts whose first push was not sent will receive the fallback message within minutes. Wait for status fits here too: set Maximum wait time to a few minutes, and the contact takes the Sent branch as soon as the status appears, instead of waiting out the whole timer. For details on the option, see Waiting for a Status Update below.

The Sent?, Delivered?, Opened? and Clicked? blocks check messages within one workflow and do not consider whether a similar action has been performed with a message in another workflow.

The same applies to a scheduled campaign running alongside a workflow: they are independent runs. A separate broadcast campaign is not cancelled automatically by a workflow, and there is no deduplication or priority just because the message ID is the same — a contact can receive both. Only a separately configured frequency control / Annoyance Level can limit this, and it is available for Email and Mobile Push.

You can build a cross-workflow check through a segment. In the first workflow, add the contact to a segment with the Add to Segment block after the message is sent; in the second workflow, put an Included in Segment? block before the message and continue along the branch for contacts who are not in that segment.

Each of these four blocks has the Take into account selector with two check options. The logic described below applies equally to each block, depending on the status it checks.

  • Only the last message. The block checks only the last message before it. If the message has the required status, the workflow continues along the Yes branch. If the message does not have this status, the workflow continues along the No branch.
Only the last message
  • Any of the previous messages. The block checks all previous messages in the workflow. If at least one of them has the required status, the workflow continues along the Yes branch. If none of the messages have this status, the workflow continues along the No branch.
Any of the previous messages
📘

Note

We recommend also using a Timer block before the Sent?, Delivered?, Opened?, and Clicked? blocks. Otherwise, for a major part of your subscribers, the workflow will run the No path.

Since the system immediately checks the condition compliance, and subscribers can't immediately respond to your campaign, there is no reliable data to run the Yes path.

Delivered?

The task of this block is to check whether the message was delivered to the user and, depending on the result, adjust the further flow of the workflow.

Delivered?

In this example, subscribers who received the first message would eventually receive the second one, and the rest would be added to the segment with invalid contacts. This way, the block helps you assess the effectiveness of email as a communication channel and reduce the error rate in subsequent campaigns.

Opened?

This block checks whether the recipient opened the message and, depending on the result (Yes/No), splits the workflow into two paths. If the recipient hasn't opened your email within a certain period, you can test a different subject line or send an SMS with the same content. This increases the chances of getting the desired action.

An open can also be registered by a mail client's image proxy that fetches the tracking pixel by itself — the contact then takes the Yes path without the recipient opening the message. See the campaign metrics glossary for details.

Opened?

Clicked?

With this block, you can check whether the contact clicked on the message and set alternative actions based on the results of the check. The block takes into account any click on any link except the unsubscribe link. Note that you can't choose to check a specific link.

Clicked?

In this workflow, the contacts who clicked the link in the first email and are potentially interested in your offer receive the next email with a special discount, more details, or the benefits of the presented product or brand. For those who didn't click, the workflow ends — for this group, you can prepare other arguments or additional communication tools.

Waiting for a Status Update

By default, the Sent?, Delivered?, Opened?, and Clicked? blocks check the status once when a contact reaches them. Enable Wait for status to hold the contact in the block until the required status appears:

  • As soon as the status appears, the contact immediately follows the Yes path.
  • If the status does not appear within the specified time, the contact follows the No path.

In Maximum wait time, specify how long the block should wait for the status. The wait time counts from the moment the contact reaches the block. Set the value in minutes, hours, or days (the minimum is 1 minute); the maximum is 30 days (720 hours).

A Timer before the block and Wait for status solve different tasks. With a Timer, all contacts are checked once when the timer ends. With Wait for status, the contact follows the Yes path as soon as the status appears, and the No path fires only after the maximum wait time. For a critical workflow, set the timing according to your business logic — 5 minutes is not a delivery guarantee.

Wait for status

Included in Segment?

The block checks whether the contact is included in a certain segment.

Included in segment? block settings with the selected segment and its ID highlighted and the Advanced parameters section marked

The block has one basic parameter — Segment. In the field, select the segment to check for the contact's membership in that segment. You can also create a Dynamic or List segment without leaving the workflow editor.

After selecting a segment, you can open and edit it directly in the workflow editor. When you finish editing, you return to the block settings with the segment still selected.

In this workflow, the subscribers who are included in the segment Valid email receive an email; the subscribers who aren't included receive an SMS. Similarly, you can use other subscriber data (activity, orders, personal data, etc.) to create the most effective and personalized campaigns.

The block also contains advanced parameters, which are detailed in a separate article.

🚧

A Newly Added Contact May Fail the Check

The result of a group or segment membership check can take up to an hour to update — the exact delay depends on the load on the system. A contact you have just added to the group can therefore follow the No branch even though the account already shows them in it.

If you need to check whether a contact has unsubscribed, the only way is a dynamic segment filtered by subscription status. Set the Timer to at least an hour so the data has time to update.

For contacts that were just added, it is better to branch on direct data than on group membership — use Check Values with a contact field or Verify Contact Field Matches Event Parameter with an event parameter.

A contact field has a lag of its own: how soon an update reaches it depends on the load on the system, so a check placed right after the event that changes the field can still read the old value. Put a Timer of at least three minutes between the action and the check. The same applies to checking whether a message has been delivered.

Current Day/Time

The block checks whether the current path is triggered based on a certain date, weekday or time.

Current day/time block settings with the Day toggle enabled and all days of the week selected

You can set up the following conditions for sending:

  • certain day of the week;
  • specific date;
  • specific time;
  • specific time on a specific date/day of the week.

Setting a specific date excludes the option to choose a day of the week. You can specify the date or day of the week and time either together or separately. By default, the time check option is inactive.

If you select a time without specifying a day, the specified time period will be checked every day.

If you choose both a day and time, the time will be checked on the specified day.

The time is checked according to the user's local time, eliminating inaccuracies associated with daylight saving time changes.

The specified boundary values are included in the check. For example, if you set the time from 08:00 to 12:00, and at the time of the check, it is 12:00, the script will follow the Yes branch.

Activating the Use contact's time zone parameter will allow you to send a message at a specific time, taking into account the contact's time zone.

Current day/time condition panel with the Time toggle on, set from 08:00 to 12:00, and Use contact's time zone checked

Let's look at how the block works. For example, on April 5, 2023, at 7:00 PM, there is a webinar that you can register for until the beginning of the broadcast. Depending on the date and time of the user's registration, you want different versions of email messages to be sent to them:

  • Email 1: Before the day of the event – "We look forward to seeing you at the webinar on April 5 at 7:00 PM."
  • Email 2: On the day of the event until 5:00 PM – "Already today! See you at 7:00 PM."
  • Email 3: On the day of the event after 5:00 PM – "Starting very soon! Don't miss the beginning at 7:00 PM."

The workflow operates as follows:

  • The workflow proceeds to the Current day/time block and checks today's date (Is it now 05/04/2023?);
  • If the date does not match the one specified in the parameter, the workflow will follow the 'No' branch – sending Email 1;
  • If today is 05/04/2023, the workflow will follow the 'Yes' branch and check the time of day;
  • If it is not later than 17:00, it will send Email 2;
  • If the current time does not match the specified time – it means it is later than 17:00, and in that case, it will send Email 3.
Workflow with two Current day/time blocks: the first checks the date and the second checks the 08:00 to 11:00 time range

Also, using the same conditions, you can opt not to send your campaign:

  • On specified days
Current day/time condition panel with the Day toggle on and Sunday selected as the day of the week
  • On specified time
Current day/time condition panel with the Time toggle on, set from 08:00 to 20:00
  • At certain times on certain days
Current day/time condition panel with Monday, Wednesday, and Friday selected and time set from 08:00 to 20:00
  • At a certain time and day
Current day/time condition panel with the Day toggle on for a specific date and Time set from 08:00 to 20:00

Variable Matches Regular Expression

The task is to check a certain variable from the event or the data received from other blocks.

For example, you can check if your recipient is a male or a female and send them different messages.

Variable matches regular expression block settings with the Name and Pattern fields highlighted

The task has 2 parameters:

  • Name: variable name. It could be an event parameter. The parameter name is entered in this field without ${}. If you check the data obtained by other workflow blocks (for example, Get contact), specify the system variable smartMessageJson in the field.
  • Pattern: the regular expression the value is checked against. The expression has to match the whole value, so a check for a part of it needs .* on both sides: to find the word London anywhere in the event parameter address, specify .*London.*.

The block processes event parameter values as strings and has no numeric comparison operators (greater than/less than). To run a numeric check, describe the number range with a regular expression. For example, to route contacts whose parameter value is greater than 50, use the pattern:

^(50\.(0*[1-9]\d*)|5[1-9](\.\d+)?|[6-9]\d(\.\d+)?|\d{3,}(\.\d+)?)$

This pattern matches any number greater than 50, including decimal values.

smartMessageJson holds the whole JSON object the previous block returned, and the pattern is matched against its text, so a check for a single key has to name that key: .*"plan":".*premium.*".*. To accept several values in one block, list them as alternatives separated by |: .*"plan":".*(premium|pro).*".*.

Check Event

The task is to check whether a particular event occurred since the workflow was launched. Events are searched by keys.

Check event block settings with the Unique key, Event, and Tracking period fields highlighted

The task has 3 parameters:

  • Unique key: event key. For example, it can be an email address; thus, this field should contain a parameter with an email address. This is a parameter from the event that launched the current workflow. If it's emailAddress, enter ${emailAddress} in the field.
  • Event: event type. This is a required field without which the workflow will not start.
  • Period: you can set the time before the start of the workflow, during which the event must be checked. By default, the block checks for events since the activation of the workflow.

Set a period when the next steps depend on what the contact did before the workflow started. For example, at the start of the workflow, check whether the contact paid or registered in the day before the start: if not, send a promo code; if yes, send an informational email.

To send a reminder only when a specific event didn't occur within a time window (for example, a contact didn't complete a purchase within 24 hours of adding an item to cart), combine a Timer with Check event:

  1. Add a Timer block set to the window you want to wait, for example, 24 hours.
  2. Add a Check event block and set Event to the event you're waiting for, for example, OrderCreated. Leave Period empty: by default, the block checks for events since the activation of the workflow.
  3. Connect the reminder message to the No branch — this fires only for contacts where the event was not found within that window.

Contact Confirmed

The task is to check whether the contact's email has been confirmed.

Contact confirmed block settings with the Email and Contact ID fields highlighted

For example, a person has subscribed to your newsletter, and you want to send a welcome email.

The task works as follows:

  1. The contact is added to the Reteno database but has an unconfirmed status.
  2. A confirmation email is sent to the contact.
  3. The task checks whether the subscription is confirmed.
  4. If it is confirmed, the Yes path is triggered, and a welcome email is sent.
  5. If it isn't confirmed, the No path is triggered.

The task has 2 parameters:

  • Email: contact's email address;
  • Contact ID: contact's ID in the system.

By default, the system checks whether the contact is confirmed by email. Specify the name of the variable or the email address in the Email field. For example, ${emailAddress} or [email protected]

If you want to use a contact ID for confirmation, specify ${contactId} in the Contact ID field.

One of the parameters must be specified.

Verify Contact Field Matches Event Parameter

The task allows checking if the contact field matches the passed value in the event parameter.

For example, you want to check if the subscriber's city matches the city value passed in the event. If that is not true, you can place the contact update block downstream.

Verify contact field matches event parameter block settings with the Contact field and Parameter fields highlighted

The task contains two basic parameters described in the table below.

ParameterDescription
Contact fieldThe field from the contact information that has to be verified.
Click the down arrow to select a field from the dropdown list or enter the field's name in the box.
You can compare the following field types:
  • Text box
  • Text area
  • Number
  • Fractional number
  • Dropdown list
ParameterThe event parameter. The task checks if the contact's field matches this parameter.
You can enter the value as a variable in the format of ${parameterName} (the parameter's name in an event, for example, ${city}), and in this case the contact's field is compared with the value of the parameter in the event.
Using the 123abc format is acceptable (for example, Kyiv), in this case the contact's field is compared with the specific value in the parameter (Contact's field 123abc?). Select case sensitive if this operation is case-sensitive.

The task also contains advanced parameters.

More about advanced workflow block parameters >

Contact Exists

The task is to check whether the contact exists. It works similarly to Contact confirmed.

Contact exists block settings with the Email, Phone, and Contact ID fields highlighted

The task has 3 parameters:

  • Email;
  • Phone;
  • Contact ID.

By default, the system uses an email address. If you want to use a contact ID, specify ${contactId} in the Contact ID field. To identify a contact by phone number, specify ${phoneNumber} in the Phone field.

Check the Checkbox List Fields

The purpose of the task is to check for empty or specific checkboxes in the contact card.

Check the checkbox list fields block settings with the Checkbox list selector and the three check options highlighted

The list of checkboxes displays checkboxes created in the Additional fields section.

The following checking options are available:

  • Check for empty checkbox fields options
  • Check for specific checkbox field options
  • Check for the presence of one of the specific checkbox field options

Check Parameter by Date/Time Value

The block checks the date or time from the event parameter and sends the contact down the Yes or the No branch.

The parameter value is passed in the ISO 8601 format with a time offset. For example, 1:00 PM on 30 July 2020 in Kyiv is 2020-07-30T13:00:00+03:00, or 2020-07-30T10:00:00Z in UTC.

The task contains two parameters:

  • Parameter — a required field for the event parameter that carries the date. By default it contains ${parameter}, which you replace with the name of your own parameter, for example ${trialEndDate}.
  • Condition — the way the values are compared. The conditions are grouped into Specific date and Relative to current date.
Condition list of the Check parameter by date/time block with the Specific date and Relative to current date groups

Specific date

Conditions in this group compare the parameter value with the date set in the field below the condition list. The date can be typed in or picked in the calendar.

ConditionWhat the block checks
Is on datethe date from the parameter matches the date you set
Is on date and timethe date and time from the parameter match the date and time you set
Is before datethe date from the parameter precedes the date you set
Is after datethe date from the parameter follows the date you set
Is between datesthe date from the parameter falls between two dates
Is between timesthe time from the parameter falls between two times
Is between dates and timesthe date and time from the parameter fall between two date and time values

For the Is before date and Is after date conditions, the date you set is not included in the period.

Range conditions have two fields separated by a dash: the start of the range on the left and its end on the right.

For example, the Is between dates condition is set to 10–12 December. The range runs from 00:00 on 10 December to 00:00 on 12 December, so the contacts whose subscription renewal date from the parameter falls on 10 or 11 December go down the Yes branch, and the rest go down the No branch.

Relative to current date

Conditions in this group compare the parameter value with the date and time when the contact reaches the block. The period is determined anew every time the block runs.

Block settings panel with the Is today condition and two hints under the condition list
ConditionWhat the block checks
Is todaythe date from the parameter is today
Is before todaythe date from the parameter precedes today
Is after todaythe date from the parameter follows today
During the lastthe date from the parameter falls between the specified moment in the past and now
During the nextthe date from the parameter falls between now and the specified moment in the future

For the Is before today and Is after today conditions, today is not included in the period.

The During the last and During the next conditions add a field for a number and a list of units: minutes, hours, days, weeks or months. The number is a whole number from 1 to 999. The period is counted in hours from the moment the contact reaches the block: 3 days means 72 hours, not three calendar days.

Block settings panel with the During the last condition, the number field and the time unit list

For example, the During the last condition set to 3 days sends down the Yes branch the contacts whose last workout falls within those three days, and the During the next condition set to 2 days does the same for the contacts whose trial ends in the next two days.


Did this page help you?