PennController for IBEX › Forums › Support › Conditionals/display logic › Reply To: Conditionals/display logic
October 25, 2022 at 9:46 am
#9614
laiamt
Participant
Hi Jeremy,
I have a similar question to the one above. In my case, I have a checkbox scale. If participants select (at least), the third option, they should proceed to the rest of the experiment. If they don’t, they should only see the last screen.
In my attempt, however, the experiment ends after the participants select any of the options of the scale.
I include the code and the demonstration link below.
Any help will be greatly appreciated.
Best,
Laia
Sequence( "pretest", "exp", SendResults(), "end")
newTrial("pretest",
newScale("input_tag1", "eh", "no", "oi", "fa") .checkbox().log().vertical().print(),
newVar("tag1").global().set(getScale("input_tag1")),
newButton("go", "Endavant") .print() .wait()
)
newTrial("exp",
getVar("tag1").test.is(oi).success(
newText("instrus1", "You selected 'oi'!.") .print(),
newButton("go", "Endavant") .print() .wait()
)
)
newTrial("end",
newText("end1", "We are done") .print(),
newButton().wait()
)
Demonstration link: https://farm.pcibex.net/r/IvVKNg/