How can I check in Twig if an advanced theme setting option is unchecked?
The following answer is credited to @leymannx.
{% if not remove_searchbar %}
  do something
{% endif %}

After some research I found twig syntax. You also can find the &quot;if statement&quot; syntax and samples on Twig Symfony website.