Feedback not working

Hi,
I am trying to insert feedback in my experiment.
It seems to me like I did everything right (I also read previous posts about this issue)
This is the key board response routine:
this is the feedback routine:


Thank you!

Two things:

  1. In the “Begin Experiment” tab do you have this?
msg=" "
  1. PracticeReponse.corr is the name of the variable which takes a value in order to be correct or incorrect. In the code you posted you do not specify any value, so how the computer is supposed to say if the response is correct or not without having a value? Don’t know your experiment but try sth like this:
if PracticeReponse.corr=="1":
      msg="Correct!"
else:
      msg="Oops! That was wrong"