Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Breaking a loop after first cycle

edited September 2017 in OpenSesame

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

Sign In or Register to comment.