• File: sameas.rst
  • Full Path: /home/bravrvjk/hpgt.org/wp-content/plugins/unlimited-elements-for-elementor/vendor/twig/twig/doc/tests/sameas.rst
  • Date Modified: 03/05/2025 5:09 PM
  • File size: 271 bytes
  • MIME-type: text/plain
  • Charset: utf-8
``same as``
===========

``same as`` checks if a variable is the same as another variable.
This is equivalent to ``===`` in PHP:

.. code-block:: twig

    {% if foo.attribute is same as(false) %}
        the foo attribute really is the 'false' PHP value
    {% endif %}