You can save state using a variable and check for the state of the variable each time you click. This article I wrote last year explains how to do simple state management (just search for the two words "state management" in this post):
Hope that helps!
That's too funny!
Thank you for the link to your article. The reason it's funny to me is that I've used that article many times to learn a few things and in fact it was the basis for me learning how to add the interactivity for my buttons!
I guess I should have paid attention to the entire tutorial :-)
For others that are new, this is a great article!
Thanks for your response!
Glad it's helpful!