I’m trying to use a feedback message in a loop with multiple trials. However, I want a message to appear only when the participant didn’t answer within the provided time frame.
I was able to create a code (“code_4” in the attached screen shot) with the “message_pt” routine in my first loop in the screenshot. This displays a time-out message if there’s no response in the allowed time window, and it presents ‘nothing’ in all other cases (i.e. when someone responds, whether correctly or incorrectly, within the given time frame).
However, since I’ve set my “message_pt” properties to be 1.5s long (so that the time-out message appears for 1.5s before moving on automatically), I’ve noticed any not-late response to my trials triggers a blank screen for 1.5s (basically showing the ‘null’-message).
I’m positive there’s a way to skip the message routine completely rather than displaying nothing.
Would anyone have suggestions how I could change the code to only use the ‘message’ routine if there wasn’t a response during the allotted time frame of a trial?
Thanks so much!
The code I’m currently using (under “End Routine”):
if not key_resp_6.keys: msg = "You didn't respond in time. Moving on." else: msg = ' '