Forum Discussion
FatmaSayed
9 years agoCommunity Member
java script
please;;;
I want to know how can i write java script code to get sum of 5 variables?????????
DaveCox
9 years agoCommunity Member
Hi Fatma,
This will do it.
var player = GetPlayer();
var sum = player.GetVar("Variable1") + player.GetVar("Variable2") +
player.GetVar("Variable3");
player.SetVar("Sum", sum);
Replace Variable1, Variable2, Variable3 and Sum with your own variable names in Storyline. I only did three, but you can add as many as you want.
Related Content
- 8 months ago
- 7 months ago
- 5 months ago