Group: Forum Members
Posts: 39,
Visits: 108
|
Hi all, I'm trying to create complex branching where a certain block appears once the subject either (a) gives 2 incorrect responses on the first trial; (b) gives at least 2 correct answers on the first trial and at least 2 incorrect answers on the second trial; (c) gives at least 2 correct answers on the 2nd trial and at least 2 incorrect answers on the 3rd trial....and so on. Here is my code, and it's not working. Can anyone help me understand what I'm doing wrong?
<block test> /trials = [1=one] /branch = [ if (trial.one.totalerrorcount >=2) block.end ] /branch = [ if (trial.one.totalcorrectcount >=2 && trial.two.totalerrorcount >=2) block.end ] /branch = [ if (trial.two.totalcorrectcount >=2 && trial.three.totalerrorcount >=2) block.end ] /branch = [ if (trial.three.totalcorrectcount >=2 && trial.four.totalerrorcount >=2) block.end ] /branch = [ if (trial.four.totalcorrectcount >=2 && trial.five.totalerrorcount >=2) block.end ] /branch = [ if (trial.five.totalcorrectcount >=2 && trial.six.totalerrorcount >=2) block.end ] /branch = [ if (trial.six.totalcorrectcount >=2) block.end ] </block>
|