Hello,
I have two instances in which I would like to end the trial.
In the first instance, exactly one stimuli should be selected AND space should be pressed. Having less than one stimuli selected and pressing space should continue the trial.
In the second instance, exactly three stimuli should be selected AND space should be pressed. Having less than three stimuli selected and pressing space should continue the trial.
The way I see it, the easiest way to accomplish this would be, is to change the ‘start’ condition of my keyboard component to a ‘conditional’ when either one (or in the other case three) stimuli are selected. That way, pressing space would not do anything prior to that.
So in this case, for the first instance (1 stimuli), I tried setting the condition to $clicked>-1
but I keep getting an error that clicked is not defined.
In the second instance (3 stimuli), I tried setting the condition to $len(activeList)==3
but that does not work as well.
For reference to my current code:
For situation 1 (1 stimuli):
For situation 2 (3 stimuli):