Multiplying two (or more) variables derived from two sliders

Jan 16, 2018

Hi all, 

I'm trying to make a slide in which the layer that is displayed depends on the value of the product of two other variables based on two separate sliders. I've included a copy of what I was working on. All it is is just a single slide that has two sliders (1 to 5 in value) on it and I've shown the value of each slider whenever either of them are moved. 

So, if Slider1=3 and Slider2=2, the total would be 6, and then I could show Layer 6 (just to make it simple here)

So, my question is, how would I set up a third value (ie "Total") that would simply be the value of Slider1 x Slider2 ? 

It basically comes down to how to I set up "Total = a*b" ? What if I wanted to set up a third slider and then it would be "Total = a*b*c" ?

 

Anyone's help would be greatly appreciated

1 Reply
Joanne Chen

Hi Doug,

You can set a variable named "Total", and set triggers to do the muliplication. 

  1. Set variable Total=Slider1 when clicking the button (e.q. submit BTN).
  2. Adjust variable Total mutiply Slider2 when clicking the button.

Using the above trigger settings, you will get Total=Slider1*Slider2 when clicking the button. And so on you can add triggers to create Total = a*b*c*........ 

 

This discussion is closed. You can start a new discussion or contact Articulate Support.