This example examines the accuracy of the response on each trial and reruns incorrect trials until no incorrect responses are made. This example is a variation on Rerun Error Trials.
This experiment illustrates a method used to rerun error trial until all responses are correct.
The SetAttribAtSource method is used to set the status of the "Correct" attribute on the TrialList to 0. An InLine is then used to examine the value of "Correct" for each level in TrialList, and to set the Weight attribute. For incorrect responses (i.e., Correct=0), the Weight attribute is set to 1. The program execution then uses a GoTo command to jump to a Label prior to TrialList, rerunning TrialList with only those levels for which the Weight=1. TrialList is rerun until no incorrect responses are made.