Test Score Problem
May 15, 2013 12:00 AM
I am working on a lesson that includes 25 True/False questions spread throughout. Each question has a value of 4 points to make life easier, or so I thought. Upon selecting the correct answer I have an action to modify variable, AICC_Score, and add 4. Instead of 4, 8, 12 etc when I run in debug I get 44444. Do I need to create my own variable for the running score total.
Discussion (3)
Do you have any other actions that are modifying the AICC_Score? It seems that somewhere the variable type is being changed from an integer to a string (hence the 44444, instead of 20).
I just tested this and it worked fine for me:
Modify Variable->AICC_Score->Add to Variable->4
You aren't telling it to set the AICC_Score value to "+4" are you?
I'm not entirely sure what was up but I deleted all the actions and redid them and it seems to be working/
You could check whether there is a blank " 4" somewhere which would tell Lectora it's a string instead of a number.
Tim
Discussions have been disabled for this post