Adding and subtracting variable count in a radial button set

Jun 27, 2023

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 radial button in the set if they change their mind, so the variable needs to adjust accordingly. For example, if they select the first radial in the button set, it adds a value of three to the variable. If they select the second radial, it adds a value of four. So if they select the first radial, then change their mind and decide to select the second radial instead, is there a way to subtract three, then add four to the variable based on the change in selection?

Thanks!

4 Replies
Tom Kuhlmann

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.