Display logic
Last updated: November 5, 2026
Display logic allows you to dynamically show or hide content inside of an email based on programmatic configurations. Similar to Klaviyo's logic tags, but more powerful, Zaymo's display logic enables highly personalized email experiences.
How display logic works
When recipients open your email, Zaymo pulls data directly from your integrations in real-time. This enables extremely personalized content tailored to each subscriber's current context.
Example use cases:
Show content only on weekends
Display offers only after 5 PM
Show special promotions when order value is over $100
Personalize content based on subscription status or other integration data
Why should I use Zaymo's display logic instead of Klaviyo's logic tags?
It is significantly easier to use than Klaviyo's tags, as Zaymo's display logic provides an LLM-assisted prompt, whereas Klaviyo's requires familiarity with their Django syntax
Zaymo's display logic executes when the email is opened, not when it is sent
Zaymo retrieves data from other integrations that may not be accessible within Klaviyo
How to add display logic to your emails
Select the block, image, or section you want to apply logic to. In the right-hand panel, open the Visibility tab, then under Conditional logic click Add logic.

In the Generate display logic window, describe when the content should show in plain English (for example, "show only on weekends") and click Generate formula. If you'd rather write the formula yourself, use the or write your own formula box. In either box, type "/" to see the variables you can use.


Use the test panel on the right to verify that your content is appearing as expected. Note that preview results depend on your selected data source - if your display logic references data from Klaviyo metrics (like event properties), you'll need to select a metric data source in the preview rather than just a profile to see the logic execute correctly.
Decide whether the content should be Visible by default. When this is off, the content stays hidden until the logic decides to show it. Then click "Apply formula". The element will now display a logic icon in the top right corner, and the Visibility tab shows your formula with options to edit or remove it.

Applying Klaviyo custom profile attributes
Link your custom Klaviyo profile attributes by typing “/” followed by the attribute name in the modal
Name the property as desired. To save, click "Link property".

Match another block's visibility
Sometimes you want two pieces of content to show and hide together, like a heading that should only appear when a product block below it does. You don't need to write the same logic twice.
Select the content that should follow the other block.
In the Visibility tab, under Conditional logic, click Match a block.
Click one of the highlighted blocks in your email. You can match a block that has its own conditional logic, a Swap up block, or a block with an action, like an action button. You can't match a block that sits inside the content you selected, or one that contains it. Press Esc to cancel.
The Visibility tab shows which block it's linked to, for example "Shows and hides with 'Hero image'". Click the link to jump to that block, or click the x to unlink.
Only images can match a Swap up block. When you match an image to a Swap up block, choose When swap shows or When swap is hidden. That makes it easy to show a fallback image only to customers who don't get the swap offer.
A block can either have its own logic or match another block, not both. Matching a block replaces any logic it already had, and adding logic to a matched block unlinks it. Zaymo asks you to confirm first.
Show content only on certain devices or email clients
The top of the Visibility tab has two more controls that don't need any logic:
Device visibility: All devices, Desktop only, or Mobile only.
Email client visibility: All devices, Interactive only, or Non-interactive only. Use Interactive only for content that only makes sense where the email is interactive, and Non-interactive only for content meant for the fallback version. See Parts of an interactive email for which clients get which version.