Using the Builder and v 1.84.2, I’m building a task where there are three routines within a loop:
- A trial block (block1), where the participant hears a sentence and must perform a lexical decision task;
- A question block, where the participant must respond to a question based on the sentence in (1);
- A ‘ready’ block, where the participant presses a key to go to the next trial.
The flow is as follows:
What I want is for not all trials to contain a question block - i.e. I want to skip the trial_q block for some trials, as I don’t want to ask a question after every sentence. I thought to do this based on a variable in the conditions file, namely “question”, which would be set to TRUE/FALSE.
I’ve tried putting
if question=="FALSE": continueRoutine=False
in the ‘Begin Routine’ tab of a code component in the trial_q routine, but no luck: the routine is not skipped.
Any advice would be greatly appreciated,