Pushing a Routine ahead in timeline when first response is collected

If this template helps then use it. If not then just delete and start from scratch.

OS : Somona 14.4.1
PsychoPy version (e.g. 1.84.x): 2023.2.3
Standard Standalone? (y/n) If not then what?:
What are you trying to achieve?:
I am trying to combine a recognition task (respond if the stimulus is new or old) and an approach/avoid task in a test phase. I want each trial (routine) to first present the appraoch avoid option, then when a decision is made, i want the new or old decision to come up. The main think is if a choice has been made i want the recognition question to start. I have not just made a subsequent routine for the recognition trial because i have images present randomly and im not sure if i can call the exact same image back to back in a follow up recognition specific routine.

What did you try to make it work?:

I currently have a timeline where in the trial routine, the Approach avoid question and response is from time 0 - 5s of stimulus onset, then recognition is 5 - 10s and i have the response key for recognition to force end routine. But even if a participant makes a response in the first second for the approach avoid, they have to wait 4 seconds till the recognition option comes.

I ended up just making a separate routine for the follow up recognition task. I was able to match the stimuli in the recognition routine with the approach avoid randomly chosen stimuli by making a code component in the approach avoid routine and setting a variable to equal the present stim (RecogStim = ApAvStim) and calling the variable (RecogStim) in the image component in the recognition routine.