Conditional loop depending on percentage of correct responses

In the same place where your current custom code is. I can’t cut and paste code from your screen shot to give you a specific example.