form questions and sub-questions
Hi All,
I'm relatively new to OpenSesame and Python, so forgive me if this is a question that's already been addressed somewhere. One reason I started to work with this as opposed to another software is because of the awesome tutorials and active forum.
I'm creating a survey to collect meta-data and a little bit of background on participants before an experiment with multiple choice and open questions. Right now I have everything running in a sequence in the blockloop. It works fine, running through all questions in order. However, I would like the answers to some of the multiple choice questions determine a follow up open ended question.
E.g.
Question 1:
What's your favorite letter?
a
b
Question 2:
if answer to Question 1 was "a", question 2 = "What do you think about American Politics in 2017?"
if answer to Question 1 was "b", question 2 = "Tell me how to weave a hammock."
If user answers "a", s/he's never prompted to talk about hammocks. Then question 3 is another multiple choice and question 4 contains another set of open ended questions, one of which would be asked depending on 3.
Is that a clear question? Again, if this is addressed somewhere, pls direct me to it, but so far my searches haven't led me to the right place.
best!
Comments
....and, I didn't mean for that bit to print like code. live 'n learn.
Hi Bob,
That's a nice question. Later today or this week, I try to make a little example to show you how this could be implemented. Be patient (but remind me in case I forget).
Eduard
Great! Thank you. I would imagine it's based on if-elif-else statements, but I can't figure out how to structure the questions in the block loop such that the control flow does what I want it to. Cheers.
Hi Eduard. I had to take a mental break from my experiment design, but I'm back, and with a reminder about this...please, if you could add this example, I'd be grateful!
Super sorry for the delay!
attached an experiment that implements somehting that you wants, right?
Actually, I was surprised how easy it was.
Good luck,
Eduard
Thanks a lot; it's very helpful. It looks so simple once it's there in front of me.
cheers!