#Can i create a switch component with variable?

5 messages · Page 1 of 1 (latest)

past robin
#

first, i tried to make it simple by using only 2 switches.

#

this is what my variable look like

#

the main switch above is a nested component of this switch button

#

THis is my variable

explaination:
when i click, i want the the boolean of switch 1 == true
then i check, if the switch 1 == true, then change the switch state to active, else change the state to default

#

bug: i can't turn on off one of them (if there are 2 changed to, i can't turn on and off all the toggle of the first one). and if i tried to turn on off the second one, it also turn of the first one.