How to use a conditional ("if") statement in an email template?


I want to make something like:

{{if order.getStatusLabel() == "Sent"}}

Sent Text!


Is it possible to make and any conditional in email templates?


A post was split to a new topic: Can I use the equality ("==") operator in an email template?

How to add if-else condition using website id?