compile
Checks if a variable is the exact same value as a constant.
{% if post.status is constant('Post::PUBLISHED') %} the status attribute is exactly the same as Post::PUBLISHED {% endif %}
Default
compile(\Twig\Compiler $compiler)
\Twig\Compiler