Hello
I’m trying to get participants to type answers to multiplication problems. The study runs well offline, but when I run it in Pavlovia I get this message:
• TypeError: Cannot use ‘in’ operator to search for ‘backspace’ in undefined
Could you help me find what’s wrong?
Thanks, Smadar
This is what’s written in my code:
Begin routine:
screen_text = ‘’
each frame:
if(“backspace” in key_Resp.keys):
key_Resp.keys.remove(“backspace”)
if(len(key_Resp.keys) > o):
key_Resp.keys.pop()
elif(“return” in key_Resp.keys):
key_Resp.keys.remove(“return”)
screen_text = ‘’.join(key_Resp.keys)
thisExp.addData(“recall_resp”, screen_text)
continueRoutine = False
screen_text = ‘’.join(key_Resp.keys)