Howdy, Stranger!

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

Supported by

Counterbalancing Conditions

lxylxy
edited March 18 in OpenSesame

Information: Latest Opensesame version, MacOS, Legacy Backend.

Hi.

Behaviour: I would like to counterbalance 4 conditions.

I followed the counterbalancing tutorial by Chris Longmore, and updated variables so that I am used var.set instead of exp.set, and in the if-run statement I used b1 == main_sequence rather than self.get( ). Regarding these changes, I am fairly new to python, and am actively trying to make sense of the manual provided, so please let me know if there is an error in my understanding.

Regarding the conditions, the in-line script is as follows (but shortened):

////

if subject_nr % 4 == 1:

b1 = 0

b2 = 1

b3 = 2

b3 = 4

elif (the other conditions)

else: (for final condition)

var.set ('b1', b1)

var.set (the other conditions).

////

The run if condition was changed from 'always' to b1 == count_main_sequence.

Problem: However, when running the experiment, only one block runs. For example, participant 1 experiences block 0 as their first block, but then the experiment comes to an end before running block 1, 2, and 3.

I am not sure why this occurs, and would really appreciate any help/guidance!

Thank you.

EDIT: Resolved, I did not specify the main loop to run 4 times :).

This discussion has been closed.