Frédérique, I’ve been thinking about your experiment and I think that I have a solution. Sorry for not modifying the experiment itself, but your stimulus list items looked nearly identical to me and I wouldn’t be able to test.
Anyway, I think that you had the right idea overall in your January 21 post, but with one caveat: instead of changing the value of existing code “List Type” in all trials in this block, you need to create a second code. Let’s call it Next List Type and give it three values: A, B, and Doesn’t Matter.
Initially, you would set the value of code Next List Type in your trials to Doesn’t Matter. Then, in your macro, if you have three consecutive items from list A, set the If true action to
Change value of code “Next List Type” to “B” in all trials in this block
But If false, then you need to add
Change value of code “Next List Type” to “Doesn’t Matter” in all trials in this block
Then, one last thing: in your “Catégorisation A fb” trials, you need to modify the condition in your When to Run tab to look like this:
Do the reverse for List Type B. The value of your code “List Type” should not be changed. I think that this should work unless I’ve forgotten some detail. Try it and let me know.