How to make a "or" funktion in switch?

My 3D printer have to states for ‘on’ mod (Operational and Printing) so how do I make a “or” funktion in switch “is_stat”??

  - platform: template
    switches:
      printer_on_off:
        turn_on:
         service: script.3d_printer_on
        turn_off:
          service: script.3d_printer_off
        friendly_name: "3D Printer On Off"
        value_template: "{{ is_state('sensor.ender_3_current_state', 'Operational', 'Printing') }}" 

When I understand you correctly you look for this:

value_template: "{{ states('sensor.ender_3_current_state') in ['Operational', 'Printing'] }}" 
2 Likes

Thanks :pray:, it is finely working.