Unexpected exit in branching


Author
Message
YL
YL
Respected Member (494 reputation)Respected Member (494 reputation)Respected Member (494 reputation)Respected Member (494 reputation)Respected Member (494 reputation)Respected Member (494 reputation)Respected Member (494 reputation)Respected Member (494 reputation)Respected Member (494 reputation)
Group: Forum Members
Posts: 6, Visits: 49
Hi there,

I need to create a break within a block. I've created a trial to display break message, and it is supposed to end the break and continue the trials when participants press space bar. Currently the program exists (blockend) after the break, could anyone tell me what is going wrong with my code?


<trial Instru_break>
/ stimulustimes = [0= Instru_break]
/ validresponse = (57)
/ responseinterrupt = frames
/ recorddata = false
/ branch = [
trial.trialselector
]

<trial trialselector>
/ trialduration = 0
/ branch = [
if (values.nCounter==55)
trial.Instru_blockend;
else if (values.nCounter +values.fCounter==150)
trial.Instru_blockend;
else if (values.nCounter==3)
trial.Instru_break
else if (rand(-1,1)>0)
trial.1_Select;
else
trial.2_Select;
;
]
/ recorddata = false

Thanks for your help!


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
YL - 8 Years Ago
Dave - 8 Years Ago
YL - 8 Years Ago
Dave - 8 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search