How to check an order status in an email template?

Ok.

So please give us one hint more: where add PHP code getting order status?

The main goal is to:

{{ if statusSent }}
blabla
{{ if statusCanceled }}
blabla

How to programmatically check whether an order is canceled?

How to programmatically check whether an order is shipped?

Please add code below 
{{trans "%order_status" order_status=$order.getStatusLabel() |raw}}

Hope to help you :slight_smile: