{% for cat in categorie %} {% if cat.id not in [16,34] %} {% if section is defined and section == cat | replace({' ': '_'}) %} {% set class = "" %} {% else %} {% set class = 'hide' %} {% endif %}