Directly assign (selected) state to variable?

Aug 30, 2022

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 a way to just assign a state to a variable? Of course this is only necessary when the checkbox is no longer on the slide when its state is needed, but in my experience that happens rather often.

Edit: It would also be nice if the checkbox updated itself when the variable changes.

1 Reply
Judy Nollet

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.