Forum Discussion

MindyHorton's avatar
MindyHorton
Community Member
2 years ago

Calculating a Total Based on Numeric Values

I am using Storyline and I want to click a button called "Total" and have it add all numerical values to present a total. I cannot figure out how to get the triggers to do this or how to use the Quiz function to make it work. Help!

1 Reply

  • HonLai's avatar
    HonLai
    Community Member

    Hi Mindy,

    I've attached your file with some updated triggers to allow you to calculate your score.

    Essentially, I've added a few triggers to calculate the score when you press the "Total" button. These are just adding each variable to "TotalRank".

    The triggers do need the "If Numeric entry > 0" statements to avoid errors.

    You can make the "Total" button turn to a disabled state if you only want the user to only have 1 attempt.