# Simple multiplication of variables

Hi there

Can anyone point me in the right direction for a simple tutorial on multiplying numbers stored as variables in Storyline2?

Basically I need to take 3 numeric inputs and multiply them together and then display the answer as another variable.

###### 10 Replies

Here is an example.

Hi Russell

This is excellent. Super clear and simple.

Have a great day.

David

Hi Russell

Just a quick question.

Now I've got the multiplication I'm trying to use the result for a further calculation but it's not working.

Basically I'm trying to take that result then multiply by a variable and then divide that result by 2.

Effectively I'm trying to do (a*b*c)*d/2.

Sorry, I though I had it but I'm now struggling again.

Thanks,

David

Hi Russell

This is perfect. Got it nailed this time.

Thanks again,

David

Hi Russell Killips,

If you don't use Numeric Entry, can you multiply 2 numbers together?
For example, instead of using Numeric Entry, use shapes so that when you click on a button, it calculates.

1 * 2, Result = 2 then click Calculate button.

Thanks,

You would have to store the numbers (at least 1) in a variable

Thinking about it you could just do a state change with the answer, so calculate has a visited state and you change the text to 2

Thanks you Mayor,

I tried and succeeded.

This just helped me SOOOOOOOOOOOOO much.  3 years old too.  Russell is my hero of the day.  And David for asking the RIGHT questions.