How can I access order tags for email notifications?

I am trying to create a conditional in the email notifications template.

I want to add a text to the confirmation email if the order has a specific tag.

{% if order.tags contains 'myTag' %}
<p>Text to insert</p>
{% endif %}

But is not working. I don’t know how to acces the order tags.

I also tried with only “tags” instead “order.tags”

Thanks!!

Try removing “order.”

According to the docs you don’t need to reference the order object - https://help.shopify.com/en/manual/orders/notifications/email-variables#order-fulfillment