You can certainly do math calculations using Storyline variables. You just need to be careful with the order of triggers.

In your example above, RawScore needs to be converted to a percentage. Let's pretend the maximum score is 70 points.

The calculation would be Percentage = RawScore x 100 / 70.

In Storyline, we would create a second number variable, called Percentage. Then we would add triggers to perform the calculation based on the user's action. It can be once they press a button, for example, or you can have it happen as soon as the timeline starts on the slide.

In the example above, we make Percentage equal RawScore. Then we multiply it by 100 and divide it by 70. The variable Percentage should now equal the value we need.

## 2 Replies

Hi, Emily.

Thank you for reaching out!

You can certainly do math calculations using Storyline variables. You just need to be careful with the order of triggers.

In your example above, RawScore needs to be converted to a percentage. Let's pretend the maximum score is 70 points.

The calculation would be Percentage = RawScore x 100 / 70.

In Storyline, we would create a second number variable, called Percentage. Then we would add triggers to perform the calculation based on the user's action. It can be once they press a button, for example, or you can have it happen as soon as the timeline starts on the slide.

In the example above, we make

Percentage equal RawScore. Then wemultiply it by 100anddivide it by 70. The variable Percentage should now equal the value we need.Let me know if this works!

It doesn't work yet, but I'm getting there.

Thank you SO MUCH! I had no idea that I could do math like that in this program. It's going to be quite the game changer. :)

Emily