| Reference | Downloads | Github

How to give feedback on current routine

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x):

I’m trying to give feedback in result routine to participants according to what they have answered in the ‘current’ pavinst routine. However, now I get feedback about the result from the ‘previous’ trial.
In pavinst routine, I record key_resp_3 which is ‘left’ or ‘right’. And correct answer is inserted through csv file in trials_4.

My current workflow looks like this:

Result routine looks like this:

Move the code component above the text_2 component (by right-clicking on its icon).The code needs to be executed before any component tries to access the variables it updates, or else it will still be using the older values.