Forum Discussion
Show results of complex calculations involving multiple variables?
Say I have multiple (3+) variables that I want to use to calculate a "final score" for something; for example, ((A+B)/2)+(C-D)*100. Is there any way to output this as a number in a text box, and is there any way to use a combination of my own variables AND built-in values like "Slides Viewed"?
I recommend you try Javascript. You don't have to learn a lot to get what you want here, and it's easier to understand than setting up a lot of triggers.
5 Replies
- ModassarWarsiCommunity Member
It is easier to do the complex calculations via JavaScript. However, such complex calculations can be done natively in Storyline as well.
Check the sample where I have done this calculation in parts so that you can understand the process.
- JudyNolletSuper Hero
As ModassarWarsi​ said, in Storyline, calculation is done in parts. Each piece is a separate trigger.
Here's my primer on that: PRIMER: Trigger calculations in Storyline | Articulate - Community
- SilverfireCommunity Member
I recommend you try Javascript. You don't have to learn a lot to get what you want here, and it's easier to understand than setting up a lot of triggers.
- jveedubsCommunity Member
Thanks a ton! I have to admit, JavaScript intimidated me at first because my first experiences learning it weren't great, but...so far, so good, and these types of things seem pretty easy. Thanks!
- JoeDeyCommunity Member
A simple JavaScript implementation. If it works for you, keep it. If you improve it, share it back here for others please.
Related Content
- 12 months ago
- 12 months ago
- 12 months ago
- 12 months ago