Forum Discussion

jveedubs's avatar
jveedubs
Community Member
22 days ago
Solved

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

  • ModassarWarsi's avatar
    ModassarWarsi
    Community 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.

  • Silverfire's avatar
    Silverfire
    Community 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. 

    • jveedubs's avatar
      jveedubs
      Community 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!