Forum Discussion
PaulaCadogan
2 years agoCommunity Member
Variable equation
Hi all,
I am making a simulator and need to add variables together to make a final total.
This works when the user inputs the info in correctly first go.
However, if they input the info, change their mind and change the info, the final total is being added to multiple times.
What am i missing? I need it to be that only the most recent variable value is added to the total rather than each new one
- WaltHamiltonSuper Hero
Reset the total to 0, and add all the variables together to make the new total.
As an added bonus, the attached project shows how you can use a layer so you have to write all those triggers only one time.
- PaulaCadoganCommunity Member
Thank you so much!!
- WaltHamiltonSuper HeroYou're welcome. PIAWYC (Pass it along when you can).