Hi,
I want to create a message in a feedback display based on if the participant either:
- Pressed the right key
- Pressed no key
3. Pressed no key when it was correct to press no key - Pressed the wrong key
if not KeyPhase1.keys :
…if CorrectKey=‘space’
.,.,.,msg=“Too slow!”
…else:
.,.,.,msg=“Correct!”
elif KeyPhase1.corr:#stored on last run routine
…msg=“Correct! RT=%.3f” %(KeyPhase1.rt)
else:
…msg=“Wrong!”
I get an error for the cursive line - what is it that I did wrong? #codingnoob
“CorrectKey” is stored in my excel sheet.