Stroop task with counterbalanced block

Hello,

group doesn’t stand alone as a variable name, it becomes one of several entries in the expInfo dictionary, so you access it like this:

expInfo['group']

e.g.

'Group' +  expInfo['group'] + '.xlsx'

Lastly, I deleted your code. Please don’t post the entire script of your experiment: it is too long for anyone to read. If you need to share your experiment, please just post the .psyexp Builder file as an attachment, it is much easier to work with.

If you need to post specific bits of code (which is fine), please do this to make it readable (it preserves the indenting, which is important when reading Python code):