Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

how to repeat a sequence until the participants get errorless twice

Hi,

I set the repeat if to '[acc] != 100'. And I can get the program run perfectly.

But if I want participants to repeat to do the same block if they just get errorless once and I want the criterion to be two consecutive errorless blocks, I do not know what statement should I make. It should be something like:
repeat if [acc] != 100 or ([acc][i] = 100 and [acc][i+1] != 100).

Thanks a lot!

Comments

  • Solved. If anyone needs help with some similar questions, just leave your question here.

  • I have a similar question, how would you repeat a variable three times or twice before switching to a new variable in a switch task?
    Thanks!

  • You can look at your log csv and pick one appropriate variable to use for counting. If it is necessary you can reset that variable for each trial. For example, I set the condition as this "set condition "[total_correct] != 8 or ([total_correct] == 8 and [count_repeat_cycle] != 3)"".

Sign In or Register to comment.