Randomize only parts of experiment

macOS PsychoPy version v3.0.0b13

Hi everyone,
the flow of my experiment is following:
Part A (Intro) - Part B (Instruction + trials) - Part C (Instruction + trials) - Part D (instruction + trials) - Part E (Instruction + trials) - Part F (end).

What I would like:
Randomize order of Part C and E (leaving all the other parts constant).
Hence, participants will either go through
A B C D E F
or
A B E D C F

I tried to put loops around C and E and another loop around C-E, but then I had the problem with D being inbetween.

what is the most simple way to change the order of C and E while leaving the order/position of the other blocks constant?

thank you very much for your help

Hi,

This depends on what exactly varies between blocks C and E: Instructions? Input files? Trial routines?

If it’s just instructions and/or input files, a simple code component would be sufficient to take care of randomising or counterbalancing C and E. If the actual trial routine is different, things will probably be more complicated.

Jan