企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# `same as` New in version 1.14.2: The `same as` test was added in Twig 1.14.2 as an alias for `sameas`. `same as` checks if a variable is the same as another variable.This is the equivalent to `===` in PHP: <table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1 2 3</pre></div></td><td class="code"><div class="highlight"><pre>{% if foo.attribute is same as(false) %} the foo attribute really is the 'false' PHP value {% endif %} </pre></div></td></tr></table>