Problems with passing the content of a variable into another

Mar 14, 2013

Hello everyone

We are trying to do something and it doesn't work.

what we want is to show the learner the detailed results of the quiz sections at the end of the quiz. There sis about 15 sections in the quiz. So we built a page like this.

 The problem is on the line with the red rectangle. This is an alternative case. Teh respondant answers either one, or another case.

So we built this script to detect which case the respondant has answered.

**********************************

10 var rezultExerFacult;
20 var  nbrExerFacult;
  
30 if (soum14 == true)
40  {
50   alert ("int");
60  rezultExerFacult = Results20.ScorePoints;
70  nbrExerFacult = Results20.PassPoints;
80   alert ("out");
90   }

100 if (soum15 == true)
110  {
120 rezultExerFacult = Results22.ScorePoints;
130   nbrExerFacult = Results22.PassPoints;
140  }

 ********************************************

If the respondant chooses case #1, then submit 14 becomes true. But if he chooses the other case, then submit 15 becomes true. The other one remains false.

But the script doesn't work. When trying to pass the content of relevant Results.ScorePoints to the variable, the result is 0. the system doesn't detect it or transfer it. We know that something blocks at line 60 or 70 because the system shows the first alter, but not the second. 

Does anyone have an idea of what might be wrong with this script?

Thanks

Be the first to reply

This discussion is closed. You can start a new discussion or contact Articulate Support.