Conditional branching from block to surveypage


Author
Message
clairez
clairez
Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)Guru (5K reputation)
Group: Forum Members
Posts: 41, Visits: 49



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!



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
clairez - 12 Years Ago
Dave - 12 Years Ago
clairez - 12 Years Ago
Dave - 12 Years Ago
                     Normal
0


21


...
clairez - 12 Years Ago
                         For dynamically defined correct responses, you need to use...
Dave - 12 Years Ago
                             Hi Dave,

The iscorrectresponse option works (at least as...
clairez - 12 Years Ago
                                 [quote]The branching, however, is still a problem. I don't want to...
Dave - 12 Years Ago
                                     Thanks! The firstlatency>0 works well.
And as for your tips;...
clairez - 12 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search