PHP Classes

File: libs/Twig/doc/tests/divisibleby.rst

Recommend this page to a friend!
  Classes of william amed   Raptor 2   libs/Twig/doc/tests/divisibleby.rst   Download  
File: libs/Twig/doc/tests/divisibleby.rst
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 312 bytes
 

Contents

Class file image Download
``divisible by`` ================ .. versionadded:: 1.14.2 The ``divisible by`` test was added in Twig 1.14.2 as an alias for ``divisibleby``. ``divisible by`` checks if a variable is divisible by a number: .. code-block:: jinja {% if loop.index is divisible by(3) %} ... {% endif %}