How create a array for collecting previous responses.
I am trying to use Opensesame to implement a pc language related assessment.
I need to stop the test when participants accuracy is below 25% in the last 8 trials (6 out of 8).
Also, the starting point of the test depends on participants age. Children start at trial 1, while adults start at trial 50. However, if adults give incorrect responses in the first 8 trials, they must go to another set (namely trial 49), going on that alternative set until they give a correct answer, then they continue as normal.
I have been trying the following:
import numpy as np
if var.get('response') == var.get('correct_response'):
for i in rage(x-8,x):
But it is not working,
I could definitely use some help. Thanks in advance.