Files
Twig/doc/tests/sameas.rst
T
Fabien Potencier e74a51ecb1 Merge branch '1.x' into 2.x
* 1.x:
  Update doc with new escaping behavior
  Remove obsolete page
  language typo
2019-12-28 08:09:20 +01:00

12 lines
271 B
ReStructuredText

``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 %}