Unable to create logic between blocks


Author
Message
cccyyy
cccyyy
Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)Associate Member (113 reputation)
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!!!

Attachments
networklearning_osf.iqx (119 views, 30.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
cccyyy - 3 Years Ago
Dave - 3 Years Ago
cccyyy - 3 Years Ago
cccyyy - 3 Years Ago
                     The script never actually runs <block socialcompleterep1>, so...
Dave - 3 Years Ago
                         You're right! This is one thing I missed. But the problem still exists...
cccyyy - 3 Years Ago
                             > But the problem still exists Please spell out, clearly, what the...
Dave - 3 Years Ago
                                 Sorry I should have been more clear about my problem. The thing is I...
cccyyy - 3 Years Ago
                                     Okay, thanks for the clarification. Two things need to be fixed: (1)...
Dave - 3 Years Ago
                                         Thank you so much for your help dave! The program works smoothly right...
cccyyy - 3 Years Ago
                                             An instruction page isn't a block, you cannot branch to an instruction...
Dave - 3 Years Ago
                                                 Ah I see. Thank you so much Dave! I really appreciated your help and...
cccyyy - 3 Years Ago
Dave - 3 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search