Calculation with variables - Articulate Storyline 360°
Sep 26, 2017
By
Pilz Academy
Dear all,
I would like to calculate with variables. The problem is, that there is a multiplication of several variables and this "result" have to divide by another variable. I find no possibility to have an invisible result for division. The aim is to transmit the result to the next field and do further calculation. After this calculation the result should be shown - two different slide layers - result correct and result incorrect.
I added the first attempt with numeric entry fields and adaption of the variables and I need definitively help ;)!
Thanks a million in advance.
3 Replies
You might need to re-upload your project, as it came through at 0 bytes in size. You should be able to do any complex computations needed with a little bit of javascript code. This would prevent you from using the Articulate Mobile Player for your course though, as it won't run javascript.
Use these steps in the trigger wizard to form these triggers. You will need one trigger for each step. The multiplyBy and divideBy variables will need a method to get values.
Adjust correctVariable assignment value 0
Adjust correctVariable assignment variable multiplyByVariable1
Adjust correctVariable multiply variable multiplyByVariable1
Adjust correctVariable multiply variable multiplyByVariable2
Adjust correctVariable multiply variable multiplyByVariable3
Adjust correctVariable divide variable divideByVariable
Adjust inCorrectVariable assignment variable correctVariable
Now you have two equal results for division, and can make whatever changes you need to one of them.
Many thanks for your answers. I uploaded my file again. I try to adapt my calculation, however the programme is calculating within the variable/numericEntry fields and doesn't show the correct result %value%. There is no Change if I correct the value to 0 or 1 or do nothing.
This discussion is closed. You can start a new discussion or contact Articulate Support.