pico/lib/twig/doc/tests/sameas.rst
Gilbert Pellegrom 92b792e8f2 Initial commit.
2012-04-04 14:45:09 +01:00

12 lines
256 B
ReStructuredText
Executable File

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