What are you trying to achieve?:
In the trial loop of my experiment, I have the following routines in sequential order: Stimulus, Response, and Feedback. I am receiving feedback following the keyboard response, however, regardless if the response was correct/incorrect, the feedback is always the negative feedback.
The following is the code I used. It was copied verbatim from the StroopReverse Demo:
Under ‘Begin Experiment Tab’:
#msg variable just needs some value at start
Under tab ‘Begin Routine’:
if resp.corr: msg = "Correct! RT=%.3f" %(resp.rt) msgColor = "green" else: msg = "Wrong!" msgColor = red
-‘resp’ refers to my keyboard response
-‘corr’ refers to my correct answer parameter from the excel sheet
when inputting code, should there be spaces between words, or no spaces? For example:
" msg = “Correct! RT =%.3f” %(resp.rt) "
Which is correct; or are both fine?
All of my ducks are in a row for the experiment, with the routines running as planned. The only hang-up is that the feedback is always negative regardless of correctness of answer.