Forum Discussion

AprilDrennan-f8's avatar
AprilDrennan-f8
Community Member
15 days ago

Calculator won't reset

Hi. I used someone else's calculator that they built for my project. I needed several instances of it. The only problem is that they seem to be connected. Maybe it is due to the variables? Anyway, so...
  • JudyNollet's avatar
    15 days ago

    Yes, the problem is that all of the calculators use the same variables. 

    If you don't need a given calculator to show the previously calculated value if a learner returns to a slide, you can simply add a trigger that sets the "currentNum" variable to 0 when the timeline starts. Put that trigger on every slide with a calculator.

    If you do want each calculator to retain its previously entered value, you need to use a different variable to store each calculation.