Warning Twig version 2.x is no longer maintained.
divisible by
divisible by
checks if a variable is divisible by a number:
1 2 3
{% if loop.index is divisible by(3) %}
...
{% endif %}
divisible by
divisible by
checks if a variable is divisible by a number:
1 2 3
{% if loop.index is divisible by(3) %}
...
{% endif %}