How to generate multiple blocks by using single condition file?

Hello all,
Currently, we are trying to build an experiment where there are multiple conditions taking place within the condition file. This condition file consisting of 240 Mini-block (each mini-block has six trials), 1440 trials in total.
Within the condition file, we have different tasks (search and recognition task) that change in the first or/and fifth trial of a mini-block. Also, we have different targets displayed in each trial, but targets are changing every 6 trials.

We are trying to have multiple blocks (in which participants can take breaks in between) within the experiment. However, we would like to ask this:
Within an experiment, is there a way to have multiple blocks by using a single condition file? In other words, can we assign a single condition file in the loop of trials, and by giving some constraints with code component, generate multiple blocks? To be more concrete, is it possible to implement something like “If the target is new, and the task is new; end the current block and wait until participant gives a key response”?

We would appreciate a lot any advice on this!

Hi There,

Within an experiment, is there a way to have multiple blocks by using a single condition file?
I think rather than having multiple blocks in a single conditions file, it is easier to have a conditions file per block, then a “meta” conditions file listing those conditions files - a bit like the description here Blocks of trials and counterbalancing — PsychoPy v2020.2

To be more concrete, is it possible to implement something like “If the target is new, and the task is new; end the current block and wait until participant gives a key response”?
This type of conditional blocking sounds a bit more like a branched experiment. In builder there is a demo of that “Demos > branchedExp” that could help!

Hope this helps,
Becca
PS. I am recatagorising this under builder as I think it related more to advanced builder concepts than coder - and it will help future users find the topic.