GDPR Compliance

We use cookies to ensure you get the best experience on our website. By continuing, you accept our use of cookies, privacy policy and terms of service.

Conditional Logic & Dynamic Email Content

One Campaign.
A Different Email for Everyone.

Migomail's conditional logic engine lets you build IF/THEN/ELSE rules that dynamically show or hide email content blocks, change subject lines, swap product recommendations, and route subscribers to different sequences — all within a single campaign send.

IF/THEN/ELSE Rules Dynamic Content Blocks AND / OR / NOT Logic Cross-Object Conditions Live Preview per Profile
Migomail Conditional Logic
Condition Combinations
50+
Condition Data Points
+34%
Avg Open Rate Lift
+58%
Avg CTR Lift
AND/OR
Logic Operators
4.9★
Customer Rating
Conditional Logic Capabilities

Build Emails That Know Who
They're Talking To

A single campaign can deliver a different experience to every subscriber when conditional logic controls what they see. Migomail's condition engine evaluates subscriber data at send time — not at build time — so every subscriber gets content that matches their exact profile.

01

IF/THEN/ELSE Content Blocks

Place conditional content blocks anywhere in your email — hero section, product recommendations, CTA button, pricing table, or any paragraph. Each block evaluates a condition at render time and shows one of two content variants: THEN (condition true) or ELSE (condition false). Multiple conditional blocks can appear in a single email, each with its own independent condition.

Drag-and-drop conditional block placementTHEN and ELSE content variants per blockMultiple independent conditions per emailNested conditions supported
02

AND / OR / NOT Logic Operators

Combine multiple conditions within a single block using AND (all conditions must be true), OR (any condition must be true), and NOT (condition must be false) operators. Chain up to 10 conditions in a single rule. Complex rules like "Show this block IF subscriber is in the VIP segment AND has purchased in the last 30 days AND is located in Delhi" are supported.

AND operator (all must be true)OR operator (any must be true)NOT operator (must be false)Up to 10 chained conditions
03

Dynamic Subject Line Conditions

Apply conditional logic to subject lines — not just email body content. Test whether a first-name personalised subject line outperforms a generic one, show a different urgency hook to subscribers who have never purchased, or reveal a VIP subject line to your highest-value customers. Subject line conditions use the same IF/THEN/ELSE rule builder as content block conditions.

Conditional subject line variantsPreview subject per subscriber profileA/B test conditional subject linesPreheader conditional logic
04

Conditional Product Recommendations

Show different product recommendations based on subscriber purchase history, browsing behaviour, category preference, or geographic location. IF a subscriber has purchased from the "Running" category, show running gear recommendations. ELSE show your best-selling products from the subscriber's most recently browsed category. All resolved at render time from your connected ecommerce store.

Purchase-history based recommendationsBrowse-behaviour recommendationsCategory preference matchingGeographic stock availability
05

Language & Locale Conditions

Send multilingual emails from a single campaign — IF subscriber locale is "hi" (Hindi), show the Hindi content block; ELSE show the English block. Locale conditions work with any language and script, including right-to-left languages. Combine with geographic conditions to show currency-specific pricing, country-specific shipping details, and region-specific product availability.

Language / locale conditionsRTL language supportCurrency-specific pricing blocksCountry-specific content variants
06

Date & Time Conditions

Show different content based on the current date, time, or a subscriber-specific date. Display countdown timers to sale-end for subscribers who have not purchased, show "today only" content on the day of a launch, hide content blocks after an event has passed, or show anniversary-specific content on the exact date a subscriber joined. Date conditions evaluate at open time, not send time.

Current date / time conditionsCountdown timer blocksPost-event content hidingSubscriber anniversary date matching
07

Live Preview per Subscriber Profile

Before sending, preview your conditional email exactly as it will appear for any subscriber in your list — select a subscriber profile and Migomail renders the email with all conditions evaluated for that specific subscriber's data. Test the VIP version, the new subscriber version, the returning customer version, and the non-purchaser version from a single preview screen, with no test send required.

Profile-specific live previewAll conditions evaluated in previewSwitch between subscriber profilesNo test send required to verify
08

Cross-Object Condition References

Conditions can reference data from any object in the subscriber record — not just direct profile fields. Reference most-recent order data (last order amount, last order product, last order date), website visit data (last visited URL, page category, time on site), automation history (enrolled in workflow X, exited workflow Y), email history (opened email Z, clicked link W), and any custom event payload data.

Last order data conditionsWebsite behaviour conditionsAutomation history conditionsCustom event payload conditions
Visual Rule Builder

Write Conditions in Plain English —
No Code, No Formulas, No Developers.

Migomail's condition builder uses a visual interface — select a data field, choose an operator, enter a value. Conditions read like plain English sentences so any marketer can build complex logic without engineering support.

Conditional Block — Product Recommendations
Active
IF
Last Order Amount
is greater than
₹5,000
AND
Last Order Date
is within
90 days
AND
Subscriber Tag
contains
vip-member
THEN
Show VIP Product Recommendations Block — curated top picks, exclusive early access badge, personal shopper CTA
ELSE
Show Standard Best-Sellers Block — top 4 products by revenue, standard CTA to shop
Add another condition
50+ Subscriber Data Points

Conditions can reference any field in the subscriber profile — first name, email, tags, custom fields, segment membership, join date, last open/click date, purchase history, geographic data, and any custom event payload sent via API.

Combine AND / OR / NOT

Chain up to 10 conditions using AND (all must be true), OR (at least one must be true), and NOT (must be false) operators. AND/OR can be mixed within the same rule — (Condition A AND Condition B) OR Condition C.

Evaluated at Render Time

Conditions are evaluated when the email renders for each subscriber — not when you build the campaign. This means a condition referencing "last order date" always uses the actual data at send time, not a snapshot taken when you configured the rule.

Preview Any Subscriber Profile

Use the profile preview to test your conditions before sending. Select any subscriber, and Migomail renders the email with all conditions evaluated for their specific data — showing exactly which blocks they will see.

Stack Multiple Conditions Per Email

Place as many independent conditional blocks as you need in a single email. Each block has its own rule — different sections can use different conditions, so a product block, a CTA block, and a footer block can all show different content based on different subscriber attributes.

One Campaign, Three Experiences

The Same Send. A Different Email
for Every Subscriber Tier.

This example shows a single monthly campaign with conditional logic applied. Every subscriber receives it in the same send — but what they see is determined entirely by their profile data, resolved at render time.

P
Priya S.
VIP Member Purchased 12× Delhi
Subject line
VIP Exclusive: First Access to New Collection
Priya, your exclusive preview
Only for VIP members
40% off · Ships free
Shop Now →
Conditions applied for this profile
VIP early access hero banner shown
Personalised product recs from browse history
Free shipping CTA (no minimum, VIP perk)
Priority support contact shown in footer
R
Rahul K.
Returning Purchased 3× Mumbai
Subject line
Your Favourites Are Back — Plus Something New
Rahul, we picked these for you
Based on your past orders
Free shipping on ₹999+
Shop Now →
Conditions applied for this profile
Returning-customer welcome hero shown
Category-matched recommendations (past orders)
Standard shipping threshold CTA
Loyalty points balance shown in header
A
Anita M.
New Subscriber No purchase Bengaluru
Subject line
Anita, here's 15% off your first order
Welcome! Here's what's new
Bestsellers to start with
15% off · Code: FIRST15
Shop Now →
Conditions applied for this profile
First-purchase offer hero with code shown
Best-sellers (no purchase history to match)
First-time buyer discount CTA
Trust signals: reviews, returns policy shown
Condition Operator Reference

Every Data Type. Every Operator.
Every Condition You Need.

Migomail supports conditional operators for every data type in the subscriber record. Here is the complete operator reference — with examples of real conditions you can build for each type.

Data Type
Available Operators
Example Conditions
Text Field
Name, email, city, country, custom text fields
is is not contains does not contain starts with ends with is empty is not empty
First Name is not empty → Show personalised greeting
City contains Delhi → Show Delhi store offer
Email domain ends with .gov → Show government plan
Number Field
Order amount, points balance, purchase count, scores
is equal to is not equal to is greater than is less than is between is empty
Order count is greater than 5 → Show loyalty reward
Points balance is between 500–1000 → Show tier upgrade CTA
Last order amount is greater than ₹10,000 → Show premium offer
Date Field
Join date, last order date, birthday, custom date fields
is before is after is exactly is within last X days is more than X days ago is today is empty
Last order date is within 30 days → Show repeat-buyer offer
Join date is more than 365 days ago → Show anniversary badge
Birthday field is today → Show birthday discount
Boolean / True-False
Subscriber consent fields, feature flags, opt-in status
is true is false
Marketing opt-in is true → Show promotional content
SMS opt-in is false → Show SMS sign-up prompt
Trial account is true → Show upgrade CTA
Tags & Segments
Subscriber tags, segment membership, list membership
contains tag does not contain tag is in segment is not in segment is in list is not in list
Tags contains vip-member → Show VIP exclusive content
Segment is Cart Abandonners → Show recovery incentive
Tags does not contain churned → Show retention offer
Dropdown / Select
Industry, role, plan type, category preference, custom selects
is is not is in list is not in list is empty
Industry is Healthcare → Show healthcare case study
Plan type is not Enterprise → Show upgrade prompt
Category preference is in [Running, Yoga] → Show activewear
How It Works

From Campaign Build to
Personalised Send in 5 Steps

Building a conditional email in Migomail follows a straightforward flow — design your template, add conditional blocks, set rules, preview across profiles, and send.

01
Design Your Base Template
Build the email layout that forms the foundation for all subscriber versions — the shared structure, shared sections, and branded design that every subscriber will see regardless of conditions.
02
Add Conditional Blocks
Drag a conditional content block from the sidebar into your email. Each block contains two areas: THEN (shown when condition is true) and ELSE (shown when condition is false). Design different content for each.
03
Configure the Rule
Open the condition rule builder for the block. Select your data field, choose an operator, enter the value. Add additional conditions with AND/OR as needed. The rule reads in plain English as you build it.
04
Preview Across Profiles
Open the profile preview. Select different subscriber profiles from your list and see the email render exactly as each subscriber will see it — all conditions evaluated for their specific data. Verify every version looks correct.
05
Send — Migomail Handles the Rest
Send the campaign as normal. Migomail evaluates all conditions for each subscriber at render time and delivers the correct personalised version to each subscriber automatically.
What Conditional Logic Changes

The Performance Difference When
Every Subscriber Sees Relevant Content

Email performance improves measurably when content matches the subscriber. These are the average lifts Migomail customers see when they move from static campaigns to conditional logic emails on the same audience.

+34%
Higher Open Rate

Conditional subject lines — showing a different subject to VIP subscribers, new subscribers, and lapsed customers — produce a 34% average open rate improvement over a static subject line sent to all three groups.

Static subject
21%
Conditional subject
28.1%
+58%
Higher Click-Through Rate

When product recommendations, CTAs, and offers are conditionally matched to each subscriber's purchase history and segment, click-through rates improve by 58% on average versus a single static product grid sent to all subscribers.

Static content
3.1%
Conditional content
4.9%
+41%
Higher Revenue per Send

The compound effect of higher opens and higher clicks — combined with more relevant offers shown to each subscriber — produces a 41% average improvement in revenue per send when conditional logic is applied to product recommendation blocks.

Static recommendations
₹1.82
Conditional recs
₹2.57
-22%
Lower Unsubscribe Rate

Subscribers who receive content that matches their profile and interests unsubscribe at a 22% lower rate than subscribers who receive a generic one-size-fits-all email. Relevance is the single strongest driver of long-term list retention.

Static campaign
0.31%
Conditional campaign
0.24%
+29%
Higher Conversion Rate

For ecommerce campaigns with conditional product blocks — showing purchase-history matched recommendations to returning customers and bestsellers to new subscribers — conversion rate improves by 29% versus a static product grid.

Static product grid
1.8%
Conditional recs
2.3%
+17%
Higher List Retention

Subscribers who regularly receive conditional emails — content relevant to their profile — are 17% more likely to remain on the list 12 months after subscription compared to subscribers who receive generic broadcasts.

Generic broadcast
71%
Conditional emails
83%
+34%
Higher Open Rate
+58%
Higher Click-Through Rate
+41%
Higher Revenue per Send
4.9★
Customer Rating
What Marketers Say

From Teams Using Conditional Logic
on Migomail

Feedback from email marketers, ecommerce managers, and growth leads who use Migomail's conditional logic to personalise campaigns without multiplying their workload.

★★★★★

Before Migomail conditional logic, our monthly campaign process was: segment list into 4 groups, build 4 separate emails, send 4 campaigns, reconcile 4 sets of analytics. It was 3 days of work per campaign. Now we build one email with conditional blocks for each audience group, preview it across 4 profiles, and send once. Same personalisation, 4 hours of work instead of 3 days. We use the time we saved to run more campaigns — we have gone from 2 campaigns per month to 6, which has been the single biggest driver of our email revenue increase.

Kavitha Reddy
Kavitha Reddy
Email Marketing Manager, Ecommerce Brand
★★★★★

We use the profile preview feature before every single conditional campaign, without exception. Before Migomail we would guess that the conditions were working correctly and occasionally discover — after sending to 60,000 people — that a condition was wrong and everyone saw the same version. Now we select 10 representative subscriber profiles before every send and verify that each one renders the correct version. The first time we caught a misconfigured condition in preview, it would have shown our "new subscriber" 15% discount to every single VIP customer on the list. The preview feature is not a nice-to-have — it is what makes conditional emails safe to send at scale.

Meena Pillai
Meena Pillai
CRM Director, Consumer Electronics

Ready to Send One Campaign That Speaks to Everyone Differently?

Add your first conditional block to any existing campaign. Preview it across subscriber profiles. See the difference before you send.

star-1
star-2
Hero image

“Rackwave Technologies has significantly improved our marketing performance while providing reliable cloud services. We’ve been using their solutions for a while now, and the experience has been seamless, scalable, and results-driven.”

David Larry

Founder & CEO

Have a question or feedback? Fill out the form below, and we'll get back to you as soon as possible.

Sending your message…

Trusted for overall simplicity

Based on 400+ reviews with customer satisfaction on
Trustpilot Trustpilot Trustpilot Trustpilot Trustpilot Trustpilot Trustpilot Trustpilot Trustpilot Trustpilot Trustpilot Trustpilot
FAQ

Frequently Asked Questions

Common questions about Migomail's conditional logic and dynamic email content.

  • What is conditional logic in email marketing?

    Conditional logic in email means showing different content to different subscribers within the same email send — based on rules you define. Instead of building separate campaigns for different audience segments, you build one email with IF/THEN/ELSE rules that determine which content block each subscriber sees. For example: IF the subscriber is tagged as "VIP", THEN show the VIP product offer. ELSE show the standard product grid. Every subscriber receives the same email send, but the content they see is personalised to their profile.

  • What data can I use in conditional rules?

    Any field in the subscriber record — text fields (name, city, industry), number fields (order count, spend amount, loyalty points), date fields (join date, last order date, birthday), boolean fields (opt-in status, trial status), tags and segment membership, dropdown/select fields (category preference, plan type), and data from connected integrations (last order product, last visited page, CRM fields). Custom fields added to your account are also available as condition fields.

  • Can I combine AND and OR conditions in the same rule?

    Yes. You can chain up to 10 conditions using AND and OR operators, and mix them within the same rule. For example: (IF subscription_tier is "Enterprise" AND last_login_date is within 7 days) OR (IF account_type is "Agency"). The parenthetical grouping of AND/OR is configured in the rule builder using condition groups — each group evaluates independently and the groups are combined with OR.

  • When are conditions evaluated — when I build the campaign or when it sends?

    Conditions are evaluated at render time — when Migomail generates the email for each individual subscriber during the send process. This means a condition referencing "last order date" uses the subscriber's actual last order date at the moment of sending, not a cached value from when you built the campaign. If a subscriber makes a purchase after you build the email but before you send it, the condition evaluates correctly against their updated data.

  • Can I use conditional logic in subject lines as well as email body?

    Yes. Subject line conditional logic works the same way as body content conditions — you configure an IF/THEN/ELSE rule that shows a different subject line to subscribers who match the condition versus those who do not. You can also apply A/B testing on top of conditional subject lines — testing two subject line variants within each conditional branch — though this requires the A/B testing feature to be enabled on your plan.

  • How do I verify that my conditional email is working correctly before sending?

    Use the profile preview feature. Open the send preview and select a subscriber from your list. Migomail renders the complete email with all conditions evaluated for that subscriber's specific data — showing you exactly which content blocks they will see. Switch between different subscriber profiles to verify every conditional branch is rendering correctly. This is the step we strongly recommend before every conditional campaign send, particularly when conditions involve multiple rules.

  • Can I use conditional logic inside automation workflow emails?

    Yes. Conditional content blocks work inside emails sent from automation workflows — welcome series, drip campaigns, win-back sequences, and trigger-based emails. This means a single workflow email step can show different content to different subscribers based on their profile at the time that specific email renders for them, rather than requiring separate workflow branches to achieve the same personalisation.

  • Is there a limit on how many conditional blocks I can have in one email?

    No hard limit. You can place as many independent conditional blocks as your email design requires. Each block has its own rule — they are evaluated independently. In practice, emails with more than 8–10 conditional blocks can become complex to preview and test thoroughly, so we recommend using the profile preview across a representative set of subscriber profiles before sending high-complexity conditional emails.