This example examines the accuracy of the response on each trial and re-runs incorrect trials until no incorrect responses are made. This example is a variation of the 'Re-run Error Trials' sample.
This experiment illustrates a method used to re-run error trial until all responses are correct.
The SetAttribAtSource method is used to set the status of the 'Correct' attribute in the 'TrialList' List object 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', re-running 'TrialList' with only those levels for which the 'Weight' attribute equals '1'. 'TrialList' is re'run until no incorrect responses are made.