How to do a program that forces you to re-practice if you don't have an accuracy rate of 80%

How to set it up: when the correct green does not reach 80%, it will force a re-practice or automatically reject the participant’s data