is_even

Test if an integer value is even:

{% if 2|is_even %}Yes, the number 2 is even{% endif %}

Edit on GitHub

format_price Numbers is_number

Referred by

Filters

Filters transform template variables before they are rendered.