How do I change it?

Hi,

The switch to the open position or closed according to the value of the slider how do I change it?

For example;

  • if (slider.value == 0) { switch.value = false; } then refresh page.