group conditional for all buttons clicked?

This may seem pretty basic but is there a conditional that will trigger once all buttons in a button group have been clicked on?
I tried just checking each button's state but the most recent click appears as "selected" so we never really have all buttons in "visited" state.
I keep reverting back to the old technique of tracking my clicks in a variable because I can't get it to work any other way.
Answers
-
You can do this with variables.
Create a variable (for example, MyVar) and put an action on each button that adds to the variable. Then include an action will run the action you want triggered after the variable conditions have been met. For example:
Button 1
- On mouseclick >modify MyVar >add to variable a
- On mouseclick >DO TRIGGER ACTION *if* MyVar contains A, MyVar contains B
Button 2
- On mouseclick >modify MyVar >add to variable b
- On mouseclick >DO TRIGGER ACTION if MyVar contains A, MyVar contains B
You can keep adding to the variable until every button you want users to click has been clicked. I hope this helps ☺️
-
susanmacnab Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 45 ☆ Superstar ☆
Thank you @beeps for your suggestion.
I am aware of the variable method and have been using it for years.
When Lectora 21 came out with improved button states and grouping, I assumed that there would be a built-in feature that could trigger an action once all buttons in a group have been clicked on. Unfortunately it doesn't seem to exist.
The variable method works perfectly, of course, but it's something that all new users have to learn on their own. If there was a conditional for "all buttons in group x have been clicked on" or even if each button had a "visited or selected" conditional it could cut out a few steps for us developers.
Categories
- 35.8K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 321 CenarioVR®
- 188 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 5 The Training Arcade®
- 5 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products