0

{% unless template == "templatename1" and "templatename2" %}

or {% if template == "templatename1" , "templatename2" %}

I would like to target "templatename2" as well but In this code, only "templatename1" is working.

1 Answers1

0

You need to repeat the condition after the and. And it's a or because template cannot be both 1 and 2.

{% unless template == "templatename1" or template == "templatename2" %}
{% if template == "templatename1" or template == "templatename2" %}
Fabio Filippi
  • 1,732
  • 25
  • 40