projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Yaffs site version 1.1
[yaffs-website]
/
vendor
/
twig
/
twig
/
doc
/
tests
/
divisibleby.rst
1
``divisible by``
2
================
3
4
.. versionadded:: 1.14.2
5
The ``divisible by`` test was added in Twig 1.14.2 as an alias for
6
``divisibleby``.
7
8
``divisible by`` checks if a variable is divisible by a number:
9
10
.. code-block:: jinja
11
12
{% if loop.index is divisible by(3) %}
13
...
14
{% endif %}