Did you add code to the number of repetitions of loop Block1?
1 if selectedBlock == 1 else 0
Unfortunately you can’t put Python code like that into PsychoPy components. It needs to go into an Auto translate code component so it can be translated to JS.
Hello, Yes, I add it into the dialog box. Fine, I’m going to create a code component at the beginning of the loop, so it translates to JS. I am going to leave the box empty and see if it works this way. Thank you
Yes, I believe the values should be either 1 or 2, so I have added selectedBlock == 1 and selectedBlock == 2 into nReps for each loop… I’m afraid it is still not working (it gets stuck into “init”) thank you, I have the feeling that we are very close to have it working!