Setting custom trial order

Hi! I have an experiment that requires each participant to be assigned a “condition” (a specific excel sheet that contains trials) and the trials to be randomized with constraints. My code to do both of these tasks works fine, but I’m unable to make the loop follow this custom order.

The loop item in Builder requires you to input a filepath to determine a specific order (“Condition”), but I want to base it off of this variable (shuffled) which contains my custom order (a list of dicts). I’m currently working in PsychoPy, but will need this to work in browser so I can’t really just create a new document to hold this custom order. I also tried a trial handler but got confused as to how to implement it.

If anyone has any advice on how to get my experiment loop to follow this custom order (stored in a variable - list of dicts), I would very much appreciate it!

When participants would put in their participant ID number, you can also add fields like “session” or “group #”. With that in mind, you can dictate the group assignment at that stage, then use if statements to select the condition filepath(s).

Issac