Twig Components / Methods / false
Note: You are currently reading the documentation for Bolt 5.0. Looking for the documentation for Bolt 5.2 instead?
false
is a Twig test to test a value for being false
(like === false
in PHP).
It uses the mentioned PHP functions / comparisons internally, so you have the same behavior as in PHP.
{% if someflag is false %} {# instead of {% if someflag is same as(false) %} #}
{% endif %}
Source: Squirrelphp
Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on Github.