Using conditional statements in email body

Just started using Mautic and I’ve been looking everywhere for how to implement conditional statements in the email body.



Basically something like

Code:
{if var = a} Then show this {else} Show this

How do I get this done?

Just started using Mautic and I’ve been looking everywhere for how to implement conditional statements in the email body.

Basically something like

{if var = a} Then show this {else} Show this

How do I get this done?

Hi @ososoba, it is built into the email editor directly: dynamic content. You can evaluate all contact fields and change content according to their field values.

Here is a tutorial for this: https://mautic.com/help/dynamic-content-in-emails/