Variable equation

Dec 21, 2022

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

3 Replies