Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame^] | 1 | ``divisible by`` |
2 | ================ | ||||
3 | |||||
4 | ``divisible by`` checks if a variable is divisible by a number: | ||||
5 | |||||
6 | .. code-block:: twig | ||||
7 | |||||
8 | {% if loop.index is divisible by(3) %} | ||||
9 | ... | ||||
10 | {% endif %} |