is_evenΒΆ

Test if an integer value is even:

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

Previous topic

is_defined

Next topic

is_list

Versions

Actions