I tried working with the script but I think I am still doing something wrong! When the error message shows up, I was able to loop it back to the main instruction trial (but not the main block), but when I hit next on the instruction page, expecting to go to the two questions again, it automatically takes me to the next block! However, if the questions are correctly answered, the next block appears automatically, which seems OK. Would you kindly check my script and let me know where I am going wrong or what I need to be doing? Much thanks!
<defaults>
/ minimumversion = "4.0.1.0"
/ inputdevice = mouse
/ fontstyle = ("Garamond", 3%, false, false, false, false, 5, 0)
/ endlock = true ("Please tell the experimenter that the experiment has ended. Thank you very much for your participation! :)")
</defaults>
<expt expt1 of 1>
/ blocks = [1=instructions_M; 2=debriefing1]
/ subjects = (1 of 1)
</expt>
<block instructions_M>
/ trials = [1 = instructions_M; 2=CheckInstructions]
</block>
<trial instructions_M>
/ stimulusframes = [1=igtinstructions, nextbutton]
/ validresponse = (nextbutton)
/ recorddata = false
</trial>
<surveypage CheckInstructions>
/ questions = [1=CheckInstructions1]
/ showpagenumbers = false
/ nextbuttonposition = (45%, 70%)
/ finishlabel = "NEXT"
/ branch = [surveypage.checkquestions]
</surveypage>
<surveypage checkquestions>
/ questions = [1=q1; 2=q2]
/ showpagenumbers = false
/ nextbuttonposition = (45%, 70%)
/ finishlabel = "NEXT"
/ branch = [if (radiobuttons.q1.response+radiobuttons.q2.response < 2) surveypage.error]
</surveypage>
<surveypage error>
/ caption = "Sorry! You did not get both answers right. Please read the instructions once again carefully."
/ showpagenumbers = false
/ nextbuttonposition = (45%, 70%)
/ finishlabel = "NEXT"
/ branch = [trial.instructions_M]
</surveypage>
<caption CheckInstructions1>
/ caption = "Before you begin, we would like to ensure that you have read the instructions carefully.
Therefore, please answer the following questions correctly in order to continue.
Please note that you will NOT be able to proceed unless you answer these questions correctly.
When you have answered these questions correctly, the task will automatically start:"
</caption>
<radiobuttons q1>
/ caption = "What is the goal of the game?"
/ options = ("To make as much money as possible.", "To count numbers.", "To choose individuals")
/ optionvalues = ("1", "0", "0")
</radiobuttons>
<radiobuttons q2>
/ caption = "What will you win if you do well in this game?"
/ options = ("Nothing.", "Top 10% of scorers will win a gift certificate of $25.", "Top 1% of scorers will win a gift certificate of $5")
/ optionvalues = ("0", "1", "0")
</radiobuttons>
<text nextbutton>
/ items = ("NEXT")
/ position = (50%, 90%)
/ fontstyle = ("Garamond", 3%, false, false, true, false, 5, 0)
/ txcolor = blue
</text>
<text igt>
/ items = ("SEAL THE DEAL!")
/ position = (50%, 15%)
/ fontstyle = ("Garamond", 4%, true)
/ txcolor = (255, 0, 0)
/ erase = false
</text>
<text igtinstructions>
/ items = instructions
/ select = 1
/ fontstyle = ("Garamond", 3%, true)
/position = (50%, 20%)
/ size = (80%, 30%)
/ hjustify = left
/ valign = top
</text>
<item instructions>
/ 1 = "In this game, your goal is to win as much money as possible. You will start with $2000.
Your total earnings and the number of trials will be displayed on the screen.
If you do well on the task, you could win a $25 gift certificate!
At the end of this study, the top 10% of participants in our study who perform the best (i.e., earn the most money across the 100 trials) will win a gift certificate of $25.
Try your best to increase your earnings as much so you can to be one of the highest earning participants and win the $25 gift certificate!"
</item>
<survey debriefing1>
/ pages = [1=debriefing1]
/ responsefontstyle = ("Garamond", -16, false, false, false, false, 5, 0)
/ itemfontstyle = ("Garamond", -16, false, false, false, false, 5, 0)
/ itemspacing = 2%
/ showpagenumbers = false
</survey>
<surveypage debriefing1>
/ caption = "Please answer the following questions"
/ fontstyle = ("Garamond", -16, true, false, false, false, 5, 0)
/ questions = [1=uniqueid]
</surveypage>
<textbox uniqueid>
/ caption = "Please enter the unique identifier you created while completing the online survey (first 4 digits of your cornell ID followed by your birthday)."
/ multiline = true
/ textboxsize = (8, 4)
/ size = (70, 50)
</textbox>