How to hide variables in email template if they contain no data?

Hi RennWelten,

You can try wrapping that line in a nil check on the variant field, like:

{% if lineItems_item.variant != nil %}

Variant: {{lineItems_item.variantTitle}}

{% endif %}

Hope that helps!

1 Like