[solved] Giving feedback following keyboard response
Hello,
I've created a keyboard response item named "Keyboard_TrainingResponse"
I'm trying to give feedback in a sketchpad immediately following the keyboard response.
To do so, I'm using python inline code that looks like this:
display_variable=""
if ([response_Keyboard_TrainingResponse]==[correct_Keyboard_TrainingResponse]):
display_variable='correct'
else:
display_variable='incorrect'
[display_variable] is a text item placed in the sketchpad following keyboard response
I found the [response_Keyboard_TrainingResponse] variable and the [correct_Keyboard_TrainingResponse] variable in the logger.
Everytime I run my experiment, no matter which response I give (correct or incorrect), I always have a sketchpad that displays 'incorrect'.
Does anyone have any ideas about either how to fix this code, or an easier way to do this. I am aware that my condition clearly isn't working. I just don't know why; nor am I certain of whether the variables from the logger do what I think they do.
Thanks in advance
Comments
Problem solved. I figured it out
Good and thanks for letting us know! Marking as solved.
Check out SigmundAI.eu for our OpenSesame AI assistant!