a SensioLabs Product

The flexible, fast, and secure
template engine for PHP

Tests » even

Questions & Feedback

License

Twig documentation is licensed under the new BSD license.

evenΒΆ

even returns true if the given number is even:

1
{{ var is even }}

See also

odd

This website is powered by PHP and Twig. The Twig logo is © 2010-2016 SensioLabs