Group: Forum Members
Posts: 2,
Visits: 12
|
I am doing an experiment where I need to assign participants to one of two prime conditions based on their sub id (even or odd) and response to a question. I am using a branch function to assign this, and all conditions, except for the last work correctly and generate the appropriate prime condition. The branch is
<surveypage TESTpage> / questions = [1=Parent1; 2=Parent2] / branch = [if(radiobuttons.Parent1.response=="Black / African American") if (mod(script.subjectid, 1)==0)surveypage.Parent1Prime] / branch = [else if(radiobuttons.Parent1.response=="White / Caucasian") if (mod(script.subjectid, 2)==0)surveypage.Parent1Prime] / branch = [else if(radiobuttons.Parent2.response=="Black / African American") if (mod(script.subjectid, 1)==0)surveypage.Parent2Prime] / branch = [else if(radiobuttons.Parent2.response=="White / Caucasian") if (mod(script.subjectid, 2)==0)surveypage.Parent2Prime] </surveypage>
this last branch goes to Parent1Prime even though I ask it to go to Parent2Prime condition. All the other branches work, so I am not sure where the issue might be? Any guidance on how to fix this is so appreciated! :)
|