Hi,
I am getting a puzzling error. I am asking participants to choose the block they enter at the beginning of the experiment. I originally had them choose from a likert scale and then I copied the likert script to add a second likert scale, slightly changing the names. However, when I add the second likert with branching, I am getting the error message saying "Expression 'block.' is invalid. Expression contains an unknown element or property name." I can't figure out why I am getting this error message as all of the blocks are defined in the script. Any suggestions and it simply replicates the version that successfully worked previously?
<likert chooseyourtraining>
/ stimulusframes = [1=myquestion]
/ anchors = [1="3 pic stat. slow"; 2="3 pic stat. fast"; 3="9 pic stat. slow"; 4="9 pic stat. fast"; 5="3 pic random slow"; 6="3 pic random fast"; 7="9 pic random slow"; 8="9 pic random fast"; 9= "stop training for now"]
/ numpoints = 9
/ anchorwidth=125px
/ fontstyle = ("Arial", 9pt, false)
</likert>
<text myquestion>
/ items = ratingquestion
/ fontstyle = ("Arial", 9pt, false)
/ select = noreplace
/ position = (50%, 30%)
</text>
<item ratingquestion>
/ 1 = "Choose your level of training below. The location of the pictures presented on the screen can be stationary (middle of screen) or randomized and the speed at which they are presented can be slow or fast."
</item>
<item ratinganswers>
/ 1 = "3 picture stationary slow"
/ 2 = "3 picture stationary fast"
/ 3 = "9 picture stationary slow"
/ 4 = "9 picture stationary fast"
/ 5 = "3 pic randomized slow"
/ 6 = "3 pic randomized fast"
/ 7 = "9 pic randomized slow"
/ 8 = "9 pic randomized fast"
/ 9 = "stop training"
</item>
<text mytext>
/ items = ("<%likert.chooseyourtraining.response%>")
</text>
<block myblock>
/ trials = [1=chooseyourtraining]
/ branch = [if (likert.chooseyourtraining.response==1) block.keeper3imagestationaryslow]
/ branch = [if (likert.chooseyourtraining.response==2) block.keeper3imagestationaryfast]
/ branch = [if (likert.chooseyourtraining.response==3) block.keeper9imagestationaryslow]
/ branch = [if (likert.chooseyourtraining.response==4) block.keeper9imagestationaryfast]
/ branch = [if (likert.chooseyourtraining.response==5) block.keeper3imagerandomizedslow]
/ branch = [if (likert.chooseyourtraining.response==6) block.keeper3imagerandomizedfast]
/ branch = [if (likert.chooseyourtraining.response==7) block.keeper9imagerandomizedslow]
/ branch = [if (likert.chooseyourtraining.response==8) block.keeper9imagerandomizedfast]
/ branch = [if (likert.chooseyourtraining.response==9) noblock]
</block>
<likert chooseyourtraining1>
/ stimulusframes = [1=myquestion1]
/ anchors = [1="Picture focus training"; 2="video anticipation training"; 3="Stop training"]
/ numpoints = 3
/ anchorwidth=125px
/ fontstyle = ("Arial", 9pt, false)
</likert>
<text myquestion1>
/ items = ratingquestion1
/ fontstyle = ("Arial", 9pt, false)
/ select = noreplace
/ position = (50%, 30%)
</text>
<item ratingquestion1>
/ 1 = "Choose your level of training below. ."
</item>
<item ratinganswers1>
/ 1 = "Picture focus training"
/ 2 = "video anticipation training"
/ 3 = "Stop training"
</item>
<text mytext1>
/ items = ("<%likert.chooseyourtraining1.response%>")
</text>
<block myblock1>
/ trials = [1=chooseyourtraining1]
/ branch = [if (likert.chooseyourtraining1.response==1) block.myblock]
/ branch = [if (likert.chooseyourtraining1.response==2) block.+5movietask]
/ branch = [if (likert.chooseyourtraining1.response==3) noblock]
</block>
<expt>
/ blocks = [1=demo; 2=myblock1]
</expt>