Hi!
I’m having some trouble with conditional branching from an openended to
a radiobutton question. I’m trying to design a task where participants are
first asked an initial question and then receive a follow-up question only if
they answered the first question but not if they didn’t. The initial question is
an open-ended question, where participants have the option to answer or not
answer. If they enter an answer
(which I now, for convenience, score as correct), then I want to branch to a
radiobutton question. However, I keep getting error messages. Maybe somebody
here has a clue?
This is part of my script:
1.
1. The openended question
<openended Question>
/ stimulusframes = [1=question]
/ mouse=false
/ position= (50, 80)
/ charlimit = 100
/ numlines = 5
/ linelength = 20
/ buttonlabel = "Press Enter to Continue"
/ correctresponse = (anyresponse)
/ responsetime = 60000
/ timeout = 60000
</openended>
2. 2. The follow-up question
<radiobuttons followup>
/ caption = "Did you the answer the first question by
guessing?"
/ options=("Yes", "No")
/ required=true
</radiobuttons>
3.
3. A surveypage element for the follow up-question
<surveypage followupQuestion>
/ questions = [1 = followup]
</surveypage>
4.
4. A block containing my openended question
<block myQuestion>
/ trials = [1 = Question]
/ branch = [if (openended.Question.response = (anyresponse))
surveypage.followupQuestion]
</block>
Here is where it goes wrong. I also tried this alternative:
<block myQuestion>
/ trials = [1 = Question]
/ branch = [if (openended.Question.correct = 1)
surveypage.followupQuestion]
</block>
Or this:
<block myQuestion>
/ trials = [1 = Question]
/ branch = [if (block.myQuestion.correct = 1)
surveypage.followupQuestion]
</block>
Each time, I get the error message that expression
‘openended.Question.correct’ or ‘block.myQuestion.correct’, or whatever else I
put in the if statement, is invalid. Can somebody give me a tip?
Thanks in advance!