]> git.immae.eu Git - github/wallabag/wallabag.git/blame - vendor/twig/twig/doc/tests/divisibleby.rst
gitignore vendor
[github/wallabag/wallabag.git] / vendor / twig / twig / doc / tests / divisibleby.rst
CommitLineData
4f5b44bd
NL
1``divisibleby``
2===============
3
4``divisibleby`` checks if a variable is divisible by a number:
5
6.. code-block:: jinja
7
8 {% if loop.index is divisibleby(3) %}
9 ...
10 {% endif %}