Forum Discussion
SarahFlynn
2 years agoCommunity Member
Adding and subtracting variable count in a radial button set
Hi all, I have a series of three radial buttons in a set. I have set a variable to add a value depending on which button is selected. My problem is I need them to be able to select a different radia...
TomKuhlmann
2 years agoStaff
an idea:
- Create a variable for the choice which can be 1, 2, or 3 based on the radial button.
- Add the respective number when selected.
- The challenge as you note, is that if I select 1, then the value is one. If I decide to select 2, then it would add two so the value of the variable is now 3.
- You can put a trigger that zeros out the var and then adds the new one. One way is to subtract the value of the variable before adding the value to the variable.