Breaking a loop after first cycle
Hi all!
I guess this is a pretty simple question, but it is driving me mad and I've not been able to find a solution on the forum. I guess that all I need to do is to write a break-if statement stating that the loop has to be broken after the first cycle has been run, but I don't know how can I do it.
I'm preparing an experiment which has two stimuli ( A and B ) and two conditions (Normal and Switched). I want some participants to see, in a series of different sketchpads, stimulus A first and then stimulus B (that's what I've called Normal condition) and some participants to see stimulus B first and then stimulus A (that's what I've called Switched condition).
What I've done is a loop with one variable (Condition), which can have two values (Normal and Switched). Inside I've placed a Sequence with all the Sketchpads I need for my experiment, all prepared to show first stimulus A and second stimulus B if [Condition]=Normal and the opposite if [Condition]=Switched. The problem I have is that I need that Sequence item to run only once (with [Condition]=Normal or [Condition]=Switched, sometimes one and sometimes the other) but not twice (both with [Condition]=Normal or [Condition]=Switched in a randomized way).
Any help will be much appreciated.
Thank you for your help!
Comments
Hi Inakigil
This should work:
[count_new_sequence]=0
where
new_sequence
is the name of you sequence item, also turn 'evaluate on first cycle off' since the variable does not exist on the first run.There is also another way, in which you create two different sequences and a larger loop around these:
http://forum.cogsci.nl/index.php?p=/discussion/386/open-present-multiple-different-trials-within-a-block
Hope this helps, good luck,
Roelof
Hi Roelof
It works perfectly fine! Thank you very much!
Best,
inakigil