How to load a csv/xlsx. from code?

Hey,

i am struggeling with my experiment. I try to present two numbers and the participant has to decide which one is bigger. The condition file has 216 pairs, but in the practice part i just want some random air not all of them. So thats why I dont use the loop to set the condition. Is there a way to load the condition in the practice part by using a code component?

Yes. There are some examples on the PsychoPy online demos thread.

However, you could also just break of of the loop early.

if trials_orac.thisN == 9:
     trials_prac.finished = True