diff options
Diffstat (limited to 'vendor/twig/twig/doc/tests/sameas.rst')
-rw-r--r-- | vendor/twig/twig/doc/tests/sameas.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/twig/twig/doc/tests/sameas.rst b/vendor/twig/twig/doc/tests/sameas.rst new file mode 100644 index 00000000..efb15c35 --- /dev/null +++ b/vendor/twig/twig/doc/tests/sameas.rst | |||
@@ -0,0 +1,11 @@ | |||
1 | ``sameas`` | ||
2 | ========== | ||
3 | |||
4 | ``sameas`` checks if a variable points to the same memory address than another | ||
5 | variable: | ||
6 | |||
7 | .. code-block:: jinja | ||
8 | |||
9 | {% if foo.attribute is sameas(false) %} | ||
10 | the foo attribute really is the ``false`` PHP value | ||
11 | {% endif %} | ||