How to change the Stimulus Onset Asynchrony(SOA) according to the participant's reaction in the last trail

Thanks @Melody, can you please show me the code in the “Begin Routine” tab as well?