divisibleby.rst 190B

1234567891011
  1. ``divisibleby``
  2. ===============
  3. ``divisibleby`` checks if a variable is divisible by a number:
  4. .. code-block:: jinja
  5. {% if loop.index is divisibleby(3) %}
  6. ...
  7. {% endif %}