IF/ELSE Blocks
You can use IF/ELSE statements to implement logic within your templates.
A common example is customizing language depending on how overdue an invoice is.
{% if invoice.days_overdue > 90 %}
Your invoice is really, REALLY overdue!
{% else %}
Your invoice is overdue.
{% endif %}