This example examines the accuracy of the response on each trial. For incorrect trials, the trial information is written to a List object which is launched after all trials have been run to re-run error trials. See the 'Re-run Error Trials Until All Correct' sample for a variation that re-runs error trials until all responses are correct.
This experiment illustrates a method used to re-run error trials.
If a response is scored as incorrect (i.e., Stim.ACC = 0), the values for that trial are used to populate a second List object. The second List is then used to re-run error trials after all of the trials have been run once. The conditional statement allows for the re-running of error trials only if errors occur. This example could be written to re-run trials until answered correctly (see Re-run Error Trials Until All Correct).