This example examines the accuracy of the response on each trial. For incorrect trials, the trial info is written to a List which is launched after all trials are run to rerun error trials. See Rerun Error Trials Until All Correct for a variation that reruns error trials until all responses are correct.
This experiment illustrates a method used to rerun 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. The second List is then used to rerun error trials after all of the trials have been run once. The conditional allows for the re-running of error trials only if errors occur. This example could be written to rerun trials until answered correctly (see Rerun Error Trials Until All Correct).