aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/twig/twig/doc/tests/even.rst
blob: 6ab5cc39a04d93c660546aa0045bd1fc465c97fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
``even``
========

``even`` returns ``true`` if the given number is even:

.. code-block:: jinja

    {{ var is even }}

.. seealso:: :doc:`odd<../tests/odd>`