Keyboard Response is not updated and [correct] remains 0 all the time
I am new to opensesame, and have tried to make a basic block that shall play two audio files, and get input from the user if the two tunes played were same or different. I take in a keyboard response as 1 for same and 2 for different.
In my loop i have added, for each combination of the audio files, a corresponding "correct_response" value, as 1 or 2.
For feedback to the user if the choice for correct ot incorrect , i have used a feedback item tool and used "run-if" [correct] =0 for incorrect and [correct]=1 for correct.
Yet, the result shown is always incorrect. I tried to run the variable inspector to see where the issue might be, and find that [correct] variable is set to 0 while before the second audio is played, and remains the same for all the trials irrespective of the keyboard response given.
Please let me know my next course of action to solve this.