Hi Dave,
I am having issues with branching, would you mind helping me with this script?
I have two error scripts:
error 1: that when rank ordering the 4 ranks (1, 2, 3 and 4) must add up to 10, else the error. However, I have another error for urging people to enter only numbers between 1-4. I have specified the range but I don't know what script I should add to define the branching when an error is made. Kindly help me when you get a chance. Here is the script:
The script is in bold and I have underlined it. When I run it, 'error2' works well, but error1 does nothing! :(
<surveypage rankselfsurvey>
/ fontstyle = ("Arial", 2.31%, true, false, false, false, 5, 0)
/ questions = [1=rankself1; 2=rankself2; 3=rankself3; 4=rankself4]
/ branch = [if (textbox.rankself1.response + textbox.rankself2.response + textbox.rankself3.response + textbox.rankself4.response != 10) trial.error2]
/ branch = [if (textbox.rankself1.response > 4) trial.error1]
/ branch = [if (textbox.rankself1.response < 1) trial.error1]
/ branch = [if (textbox.rankself2.response > 4) trial.error1]
/ branch = [if (textbox.rankself2.response < 1) trial.error1]
/ branch = [if (textbox.rankself3.response > 4) trial.error1]
/ branch = [if (textbox.rankself3.response < 1) trial.error1]
/ branch = [if (textbox.rankself4.response > 4) trial.error1]
/ branch = [if (textbox.rankself4.response < 1) trial.error1]
</surveypage>
<trial error2>
/ stimulusframes = [1=error2, back]
/ correctresponse = (back)
/ inputdevice = mouse
/ branch = [if (trial.error2.correctstreak >= 1) surveypage.rankselfsurvey]
</trial>
<trial error1>
/ stimulusframes = [1=error1, back]
/ correctresponse = (back)
/ inputdevice = mouse
/ branch = [if (trial.error1.correctstreak >= 1) surveypage.rankselfsurvey]
</trial>