Question
Adding variables in JS
Hello,
Could someone please explain how to add three variable values in javascript for Captivate? I have 3 scoring variables called sc1 sc2 and sc3. I'd simply like to add them together and set this number into the variable "add_3"
Assuming all the scores are 100, the variable add_3 shows up as 100100100.
window.cpAPIInterface.setVariableValue("add_3", sc1+sc2+sc3);
Thanks!
