mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-26 09:56:40 +00:00
12 lines
261 B
ReStructuredText
12 lines
261 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 user.name is same as(false) %}
|
|
the user attribute is the 'false' PHP value
|
|
{% endif %}
|