Forum Discussion
DominikR
3 years agoCommunity Member
Directly assign (selected) state to variable?
I would like to set a True/False variable to the state of a checkbox. Right now I'm using two triggers (set to true if selected, otherwise false) and that just feels wrong and error prone. Is there ...
JudyNollet
3 years agoSuper Hero
Don't Set the variable when the button is clicked. Toggle it!
That trigger will automatically switch between True and False as the user selects and deselects the button.
If you also adjust the variable elsewhere, you'll need triggers that change the state of the button based on the variable when the user returns to the slide.