Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame^] | 1 | ``same as`` |
2 | =========== | ||||
3 | |||||
4 | ``same as`` checks if a variable is the same as another variable. | ||||
5 | This is equivalent to ``===`` in PHP: | ||||
6 | |||||
7 | .. code-block:: twig | ||||
8 | |||||
9 | {% if foo.attribute is same as(false) %} | ||||
10 | the foo attribute really is the 'false' PHP value | ||||
11 | {% endif %} |