Forum Discussion

ValerieHuddl276's avatar
ValerieHuddl276
Community Member
6 hours ago

Multiply 4 numeric values

I'm trying to create a business potential calculator in Storyline 360 that multiplies 4 numerical values (NV for below) to result in a dollar amount. Below is what I'm trying to accomplish.

NV1 x NV2 x NV3 x NV4 = NV $Amount

 

I'm having trouble coming up with variables and triggers for the Calculate button as I can only multiply one variable with just one other variable rather than multiple variable. I've seen some tutorials on adding up numbers behind the scenes or calculating with only 2 variables, but I'm unable to find something that can multiply 4 numbers together to get a result.  

I'm creating this in a table so each NV has a descriptor on the slide. 

I'm at beginner level with using variables, so any way to make this easy to understand would be fantastic. 

Much appreciated!

  • It's true that you can only perform one math calculation per trigger. That means you'll need multiple triggers to multiply 4 numbers. 

    For example.

    • Use NV1, NV2, NV3, and NV4 as the variable names for the 4 values to be multiplied.
    • Also create a numeric variable (e.g., NV_calc) for the calculated amount. 
    • Trigger 1: Set NV_calc to the value of NV1
    • Trigger 2: Multiple NV_calc by the value of NV2
    • Trigger 3: Multiple NV_calc by the value of NV3
    • Trigger 4: Multiple NV_calc by the value of NV4

     

    The NV_calc variable will update with each trigger.

    Note: Access the operators by clicking that part of the trigger wizard.