Hello. I’m trying to create an experiment where participants respond by typing a 1 or 2 digit response, and then press ‘return’ to advance.
I cannot figure out how to create this in the builder. If I select ‘force end of routine’ then I can only respond with 1 keypress. But if I do not, then I cannot advance to the next question.
I have tried to write a stop condition, but I cannot figure out the syntax. For example, I tried $keys[-1]==‘return’, but the error message says that ‘keys’ is not defined.
Any help is appreciated. Thanks.