Group: Forum Members
Posts: 7,
Visits: 12
|
<block socialcomplete1> /preinstructions = (socialinstruct1, socialinstruct2, socialinstruct3, socialinstruct4, socialinstruct5, instruct5) /trials = [1-12 = noreplace(S1socialcomplete, S2socialcomplete, S3socialcomplete, S4socialcomplete, S5socialcomplete, S6socialcomplete, S7socialcomplete, S8socialcomplete, S9socialcomplete, S10socialcomplete, S11socialcomplete, S12socialcomplete)] /postinstructions = (round1) </block>
<block socialcomplete2> /trials = [1-12 = noreplace(S13socialcomplete, S14socialcomplete, S15socialcomplete, S16socialcomplete, S17socialcomplete, S18socialcomplete, S19socialcomplete, S20socialcomplete, S21socialcomplete, S22socialcomplete, S23socialcomplete, S24socialcomplete)] </block>
<block socialcompleterep1> /preinstructions = (round2more) /trials = [1-12 = noreplace (S1socialcomplete, S2socialcomplete, S3socialcomplete, S4socialcomplete, S5socialcomplete, S6socialcomplete, S7socialcomplete, S8socialcomplete, S9socialcomplete, S10socialcomplete, S11socialcomplete, S12socialcomplete)] / branch=[if (block.socialcomplete2.correctstreak + block.socialcompleterep1.correctstreak <= 24) block.socialcomplete2] / branch=[if (block.socialcomplete2.correctstreak + block.socialcompleterep1.correctstreak == 24) block.endinstruct] </block>
I created three blocks named "socialcomplete1" "socialcomplete2" and "socialcompleterep1". Each block has 12 rounds. Block 1 ("socialcomplete1") is a practice trial. What I want is that the program would end when participants successfully finish two blocks consecutively either in the order of Block 2 ("socialcomplete2") and Block 3("socialcompleterep1"), or Block 3("socialcompleterep1") and Block 2 ("socialcomplete2"). But with the above code, I always obtained very bizarre results.
I've tried to debug this code for almost a week but no luck so far. Would really appreciate if anyone could help!!!
|