Hi, I can’t find a way to use different input file depending on participant’s id. What I need is to somehow implement this: “if participant’s id%2 !=0, choose file 1, else use file 2”.
Thanks Jens! It worked perfectly when I run the experiment locally, but when I try to pilot it from Pavlovia, I get the following error:
It looks like it’s unable to find the files when they are in two separate rotations. When I pilot it from Pavlovia using a single input file, it runs fine. I can’t see the reason why it would have a problem fetching separate files when run online if it doesn’t when run locally.
do you mind sharing your script and your input files, either via link to your public project or upload *.psyexp, *. xlsx here. Currently, your link just goes to gitlab and not to your project.
delete the code-element from your trial-routine. Insert a code-element in the instructions-routine. Insert the following code at the Begin-Experiment tab of that code-element