I have created a code to attempt to simulate the effects of sweating by a person. I have a variable that keeps track of the temperature of a person’s arm and is only supposed to change upon certain events. The only time the variable is modified is when a specific function is called (ArmHeat), but the variable continues to change even when there are no triggering conditions. What am I doing wrong?
Here is my code: