Adding variables together?
July 30, 2012 12:00 AM
Hi all,
Great forum everyone.
I have a questions regarding variables. I'm building a course that has 3 short quizzes. Each quiz has a variable assigned to record the learners score, these are:
Learner_score_lesson1
Learner_score_lesson2
Learner_score_lesson3
What i am trying to achieve is at the end of the course i want to add these 3 variable values together to give a final score in another variable called "Final_score". Then depending what the final score is the learner will be presented with differing feedback.
It's working apart from i don't know how to add the three variable values together to achieve the "final_score".
Any assistance would be greatly appreciated. Many thanks,
Stevie
Discussion (1)
on the page where you will display the score add an on show variable that adds the Lesson 1 score to the final score, add another that adds Lesson one to Final Score and then a thrid one that adds Lesson 3 score to final score and then a fourth one that divides final score by 3. then put a change content of a text box to say "your score is var(final score)
there should be a way to put all that in a formula like (L1+L2+L3)/3 but I can't figure out how to do that.
Discussions have been disabled for this post