Tests

same as

The same as test checks if a variable is the same as another variable.

{% if foo.attribute is same as(false) %}
  the foo attribute really is the 'false' PHP value
{% endif %}

Last updated on