Continue on to next routine if they score a 90% or above, if less than, redo trials

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

I am working on a task that, if they score a 90% or above, they can move on to the next routine. If not, they must redo the previous loop again.

Any advice?