is_evenΒΆ

Test if an integer value is even:

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

Previous topic

filesizeformat

Next topic

is_number

Versions

Actions