Individualized condition files

Hi,
I have been running many online reaction time studies where words are presentend as cues on the screen. So far, I have always been using the same stimulus set for all participants. Please see screenshot below for a typical condition file.

For a new study, I would like to use individualized stimulus sets so that the words reflect each patient’s individual experience (I have ranking data from each patient for that).

Since I have a lot of patients, I don’t want to create 100 different condition files. Is it somehow possible to have word1, word2, word3 etc as placeholder names in the condition file, and then combine that with a separe file that contains what word1, word2 and word3 represent for each participant? Like a look-up table? I have create 2 screenshots below to illustrate what I mean

main condition file


look up table

I would be helpful for any tips on how to implement this.
Henning

In short, yes.

One option would be to use the shelf to store your lookup table and then retrieve values for word1, word2, word3 and word4 that way. Then in the loop have something like:

thisWord = ''
if word == 'word1':
     thisWord = word1
elif word == 'word2':
     thisWord = word2
elif word == 'word3':
     thisWord = word3
elif word == 'word4':
     thisWord = word4