a SensioLabs Product

The flexible, fast, and secure
template engine for PHP

Tests » odd

Questions & Feedback

License

Twig documentation is licensed under the new BSD license.

oddΒΆ

odd returns true if the given number is odd:

1
{{ var is odd }}

See also

even

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