Tests and Variables - nightmare

carolyn_aviva
carolyn_aviva Community Member Posts: 3
Hi I'm infrequent user of Lectora and need some help to set up some semi complicated variables.



If the learner fails the test which has eight sections, what I want to do is redirect from the fail page back to the menu page and show them what sections they have to complete again with a simple tick indictor. What Im strugglling to figure out is how to set up the variable on the fail page (this shows results for all the sections) to do the initial count and on the menu page to complete the action from the variable count.



Ideally what I think I need to do, is if pass mark for a section is less than 85% this adds one to variable. Then on the menu page, show cross if varaible count is 1, ie less than 85 pass mark. What Im struggling to figure how is how I use test score which has a value less than 85% to generate the variable. Would be so easy it it could just say - on show - modify variable - add 1 - On condtion test score 1 is lesss than 85% Any help this would be muich appreciated as I've been struggling for couple of days now and I'm sure it must be something obvious.



Regards.



Carolyn.

Comments

  • timk
    timk Community Member Posts: 1,245 ✭ Legend ✭
    There are several way to do that. One would be: Create a variable for each section, e.g. "sec1status" (initial value = 0) for the first section. On the Failed page create an action on page level:



    On: Show

    Action: Modify variable

    Target: sec1status

    Value: 1



    Condition:

    Only if

    "Test_1_Test_Section_1_Score" "Greater than or equal" "85"



    Else:

    Action: Modify variable

    Target: sec1status

    Value: 2



    Then you know that sec1status equals "0" if the test hasn't yet been taken, "1" if the section has been passed and "2" if the test section has been failed.



    On your menu page create an action on page level:



    On: Show

    Action: Show

    Target: Red_X_1



    Condition:

    Only if "sec1status" "equal to" "2"



    You can create a variable for each section and copy the actions for sec2status, test_1_test_section_2_score etc



    Tim
  • carolyn_aviva
    carolyn_aviva Community Member Posts: 3
    Thanks Tim, I'll give that a go. I didn't realise I could use the value of 85%



    Would you mind If I emailed you direct, if I have another query relating to this scenario ?



    Regards.





    Carolyn.
  • timk
    timk Community Member Posts: 1,245 ✭ Legend ✭