latest
User Guide
Developer Guide
Cookbooks
Best Practices
Reference
Modules
Actions
Controllers
Filters
Binaries
Booleans
Dates
Encryption
Character escaping
Forms
HTML
Lists
Mailing list
Menu
Miscellaneous
Numbers
filesizeformat
format_duration
format_integer
format_number
format_price
is_even
is_number
max
min
minmax
rand
round
round_significant
to_integer
Regular Expressions
Resource lists
Resources
Strings
Survey
Translation
Tuples
URLs and links
Variables
Tags
Global template variables
Models
Validators
Notifications
Installation requirements
Configuration
Command-line
EDoc reference
Glossary
Zotonic
Docs
»
Reference
»
Filters
»
Numbers
»
is_even
Edit on GitHub
is_even
¶
Module:
mod_base
Test if an integer value is even:
{%
if
2
|
is_even
%}
Yes, the number 2 is even
{%
endif
%}
Read the Docs
v: latest
Versions
latest
stable
0.x
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.