URL of experiment:
Description of the problem:
Hi, I am receiving an error message when providing a mouse response since adding a feedback component to my experiment.
I have set my mouse component to response. I have clicked the storecorrect and included corrAnsprac as the variable storing the correct response. This is also the name of the column in my Excel file (also included in the LOOP).
I included the Excel file with the correct answer and named the column as corrAnsprac.
I have included a code component in the same routine as the clickable stimuli at the very top. In the code component and in the end routine tabe I have included this code:
if response.clicked_name == corrAnsprac:
corr = 1
else :
corr = 0
thisExp.addData(‘Score’, corr)
Within the same loop routine for feedback I have included a code component in the
begin experiment tab I have included
msg = ‘’ ’
begin routine:
if corr == 1:
msg="Correct! "
else:
msg=“Incorrect”
My task is not working
Thanks