mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-27 18:47:13 +00:00
e74a51ecb1
* 1.x: Update doc with new escaping behavior Remove obsolete page language typo
12 lines
271 B
ReStructuredText
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 %}
|