Win10
PsychoPy version: v2020.2.0
Standard Standalone? y
What are you trying to achieve?:
In my experiment, participants must respond within 3 seconds. But if they reply earlier they can continue (I set it to force end). I just want to give “you were late” feedback when they don’t answer. The code below works but it doesn’t work in the first trial. Where is the error?
Begin exp:
msg=’’
msgDuration=()
Begin Routine:
if key_resp.keys :
msg=""
msgDuration=(0)
else:
msg=“You were late”
msgDuration=(0.3)
Thanks in advance