ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的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>