Sum of active and inactive buttons

Hi! I have to do a counting task with active and inactive buttons. If I click on the button, the rate sums up all inactive buttons and the active one. All buttons can be turned on simultaneously and the rate changes automatically. I don’t know what interactions to use, I’m new. Should interactions be on the main buttons?

If I’m understanding your situation correctly, it’s probably best to store the active/inactive values in a repeater and use its interactions to perform the calculations. I think you just need to add the total inactive values to the total active values.

The buttons, themselves, don’t do anything with the values, they just tell the repeater which numbers should be added up.
Calculate_Selected_vs_Unselected.rp (108.3 KB)

1 Like