Turn off toggle 1 if toggle 2 is on

KLWP. I have 2 global switches toggle 1, toggle 2. They are enabled by clicking on 2 different blocks.
Is it possible if toggle 2 is on, it will turn off toggle 1 and vice versa.
Are there any possible solutions? Thanks.

That kind of switch is easier to do with a Text type. That way you can have a formula $if(switch1=on, switch2=off,switch1=on)$ or $if(switch1!=off,switch1=on,switch2=on)$

Ok but I don’t quite understand how to use it. When I click block 1 animation 1 starts, when I click block 1 again, the block with animation disappears. When I click block 2 animation 2 starts. when I click block 2 again, the block 2 with animation 2 disappears. But I can’t have both animations at the same time. Otherwise they overlap.

I’m not clear on your layout or what you’re animating but if the two buttons or toggles are working correctly so that one turns off when the other turns on, then you should be able to get your animations synchronized by adjusting the Delay and/or Duration values. They’re either in fifths or tenths of a second (I can’t remember).

I did it differently. I disabled the switches and created a variable --number. In the blocks —touch— I set a shortcut — klwp actions and there I changed the value of the variable by click on the block. Resolved. Thanks.