Millisecond Forums

Conditional skipping of surveypages

https://forums.millisecond.com/Topic3765.aspx

By barsad - 1/18/2010

Hello -


I need to conditionally ask a question on a survey based on which stimulus
the subject previously saw. Here's a mock up of what I tried, with the error result on the Runmonkey below it.

<values>
/test1=
0;
</values>

<surveypage condition100>
/ caption =
"Please read the following....
blah blah lah"

/ showbackbutton =
false
/ values.test1 = 1
</surveypage>

<surveypage
condition101>
/ caption = "Please read the
following....
pffffft!!!"

/ showbackbutton = false
/ values.test1 =
0
</surveypage>

<surveypage condition102>
/caption="so
there"
/ skip = [values.test1 == 1]
</surveypage>

<survey
condition_test>
/ pages=[ 1=condition100; 2=condition102]
/
showpagenumbers = false
</survey>

When I try running
this, I get the following warnings.
<surveypage
condition100>
 /values.test1: is not a valid attribute.
<surveypage condition101>
 /values.test1: is not a valid
attribute.

Is the a correct and/or better way to do
this?

Any help would really be appreciated!


Josh


By Dave - 1/19/2010

You'll want to change


<surveypage somepage>
/ values.test1=1
[...]
</surveypage>


to something that actually conforms to Inquisit's syntax, such as


<surveypage somepage>
/ ontrialend = [values.test1=1]
[...]
</surveypage>


~Dave

By barsad - 1/20/2010

Thanks so much, Dave, that was the key.


Josh