Sound component only plays randomly

Thanks so much for your help! Forgive me, I don’t come from a coding background - I am under the impression that the stimuli pull from columns and not rows? I had attempted rows initially (I have a former post about this - see here ) However, I never was able to make it work. I have had trouble finding resources that address conditional stimuli like this as opposed to routines, so I went with this route. It certainly didn’t pull the stimuli directly from rows, so I attempted to make every row a separate csv for each stimuli year and try a nested loop, which also did not work. If you know a place where I can read about how to cue a row of stimuli in a sound component (and a loop) I am happy to look into it!

The only thing I can think of currently is to keep the 63 routines, each with its own loop within the larger loop, and assign rows of stimuli to the routine loops, and create code to skip all 62 routines that do NOT correspond to the birth year input. This equally seems not elegant - I am sure there is a better way!

There are 63 possible years (conditions).

Thanks so much