is_evenΒΆ

Test if an integer value is even:

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

Previous topic

format_price

Next topic

max

Versions

Actions