I am skipping some of the routines or components in psychopy. For example, I can have two components, decision and outcome, and for each I am reading in a .csv file. However, in some trials I only want to show the decision component, but not the outcome routine. For this, I created an index that either skips (ContinueRoutine = False) or enters the component. Even though on trials where it skips the routine, it still reads in the textfile and thereby writes 1-2 lines into the saved .csv file. I don’t know how to avoid this, because it creates a super messy final textfile.