aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/twig/twig/doc/tests/sameas.rst
blob: efb15c35ef08d1bc1949b8638d7b63ee33f8388c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
``sameas``
==========

``sameas`` checks if a variable points to the same memory address than another
variable:

.. code-block:: jinja

    {% if foo.attribute is sameas(false) %}
        the foo attribute really is the ``false`` PHP value
    {% endif %}