Forum Discussion
Using states to create select and deselect
Michael,
That's a tough egg to crack. If you only use triggers, it's not going to work because both triggers are associated with the button and both fire each time you click. Hence, they interfere with one another. To do this, you'll need a little variable helper and some cool coding.
Get ready to Toggle your Variable!
I've attached the sample on how you accomplish this.
Mike
- EstherRamiri2275 years agoCommunity Member
Thanks Mike! I know this post has been around for 8 years and I was excited to find it along with your example. I believe you just saved me hours of useless trigger programming!
I hadn't even thought about using a variable. It all makes sense now. It worked out and now I have a beautiful working slide.
Thank you!
- MikeEnders5 years agoStaff
Hi Esther,
That's wonderful! I'm glad it's still helping. I would, however, point out Phil's comment. You may not need the variable.
Mike
- DyaneEspinosa-b5 years agoCommunity Member
Wow!!!! This was posted 8 years ago, but it is working perfectly for me now in quarantine 2020!
Thanks
Dyane