Problem with running scirpt


Author
Message
uni-student92084
uni-student92084
Partner Member (608 reputation)Partner Member (608 reputation)Partner Member (608 reputation)Partner Member (608 reputation)Partner Member (608 reputation)Partner Member (608 reputation)Partner Member (608 reputation)Partner Member (608 reputation)Partner Member (608 reputation)
Group: Forum Members
Posts: 57, Visits: 172
Hello, 
Whenever I tried to run my script, the program tells me that "the expression 'list.policyBRep/next' is invalid. Expression contains an unknown element or property name"
This error is in regard to my /select=list.policyBRep.nextindex in my text elements: 

<text PolicyBRep1>
/items = PolicyBRep
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.policyBRep.nextindex
</text>

I don't know what is wrong with this section of my script, could someone tell me what I'm going wrong? 

This is the whole script for context:

<item PolicyARep>
/1 = "score1"
/2 = "score2"
/3 = "score3"
/4 = "score4"
/5 = "score5"
/6 = "score6"
/7 = "score7"
/8 = "score8"
/9 = "score9"
/10 = "score10"
</item>


<item PolicyADem>
/1= "score1"
/2= "score2"
/3= "score3"
/4 = "score4"
/5 = "score5"
/6 = "score6"
/7 = "score7"
/8 = "score8"
/9 = "score9"
/10 = "score10"
</item>


<item PolicyBRep>
/1 = "score1"
/2 = "score2"
/3 = "score3"
/4 = "score4"
/5 = "score5"
/6 = "score6"
/7 = "score7"
/8 = "score8"
/9 = "score9"
/10 = "score10"
</item>

<item PolicyBDem>
/1 = "score1"
/2 = "score2"
/3 = "score3"
/4 = "score4"
/5 = "score5"
/6 = "score6"
/7 = "score7"
/8 = "score8"
/9 = "score9"
/10 = "score10"
</item>



<text PolicyARep1>
/items = PolicyARep
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.PolicyARep.nextindex
</text>


<text PolicyARep2>
/items= PolicyARep
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.PolicyARep.nextindex
</text>

<list policyARep>
/poolsize =10
/selectionrate = always
/ replace = true
</list>


<text PolicyADem1>
/items= PolicyADem
/txcolor = blue
/animation = path (5000, 1 0%, 90%, 100%, 90%)
/ select = list.PolicyADem.nextindex
</text>

<text PolicyADem2>
/items= PolicyADem
/txcolor = blue
/animation = path (5000, 1 0%, 90%, 100%, 90%)
/ select = list.PolicyADem.nextindex
</text>

<list PolicyADem>
/ poolsize = 10
/ selectionrate = always
/ replace = true
</list>


<text PolicyBRep1>
/items = PolicyBRep
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.policyBRep.nextindex
</text>

<text PolicyBRep2>
/items = PolicyBRep
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.policyBRep.nextindex
</text>

<text PolicyBDem1>
/items = PolicyBDem
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.policyBDem.nextindex
</text>

<text PolicyBDem2>
/items = PolicyBDem
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.policyBDem.nextindex
</text>



<trial PolicyADem>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ beginresponsetime = 0
/ stimulustimes = [0=replace(PolicyADem1); 1000=replace(PolicyARep1); 2000=replace(PolicyADem2);
3000= replace(PolicyARep2)]
</trial>

<trial PolicyARep>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ beginresponsetime = 0
/ stimulustimes = [0=replace(PolicyARep1); 1000=replace(PolicyADem1); 2000=replace(PolicyARep2);
3000= replace(PolicyADem2)]
</trial>

<trial PolicyBDem>
/validresponse = ("E", "I")
/ correctresponse = ("E")
/ beginresponsetime = 0
/ stimulustimes = [0=replace(PolicyBDem1); 1000=replace(PolicyBRep1); 2000=replace(PolicyBDem2);
3000= replace(PolicyBRep2)]
</trial>

<trial PolicyBRep>
/validresponse = ("E", "I")
/ correctresponse = ("E")
/ beginresponsetime = 0
/ stimulustimes = [0=replace(PolicyBRep1); 1000=replace(PolicyBDem1); 2000=replace(PolicyBRep2);
3000= replace(PolicyBDem2)]
</trial>





<block test1 >
/trials= [ 1= replace(PolicyADem); 2=replace(PolicyBRep)]
</block>

<block test2>
/trials =[1=replace(PolicyARep); 2=replace(PolicyBDem)]
</block>

<expt>
/blocks= [ 1= test1;2= test2]
/subjects = (1of 2)
</expt>

<expt>
/blocks= [1= test2; 2= test1]
/subjects = (2 of 2)
</expt>


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
Kksham052 - 1/28/2020
Hello, 
Whenever I tried to run my script, the program tells me that "the expression 'list.policyBRep/next' is invalid. Expression contains an unknown element or property name"
This error is in regard to my /select=list.policyBRep.nextindex in my text elements: 

<text PolicyBRep1>
/items = PolicyBRep
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.policyBRep.nextindex
</text>

I don't know what is wrong with this section of my script, could someone tell me what I'm going wrong? 

This is the whole script for context:

<item PolicyARep>
/1 = "score1"
/2 = "score2"
/3 = "score3"
/4 = "score4"
/5 = "score5"
/6 = "score6"
/7 = "score7"
/8 = "score8"
/9 = "score9"
/10 = "score10"
</item>


<item PolicyADem>
/1= "score1"
/2= "score2"
/3= "score3"
/4 = "score4"
/5 = "score5"
/6 = "score6"
/7 = "score7"
/8 = "score8"
/9 = "score9"
/10 = "score10"
</item>


<item PolicyBRep>
/1 = "score1"
/2 = "score2"
/3 = "score3"
/4 = "score4"
/5 = "score5"
/6 = "score6"
/7 = "score7"
/8 = "score8"
/9 = "score9"
/10 = "score10"
</item>

<item PolicyBDem>
/1 = "score1"
/2 = "score2"
/3 = "score3"
/4 = "score4"
/5 = "score5"
/6 = "score6"
/7 = "score7"
/8 = "score8"
/9 = "score9"
/10 = "score10"
</item>



<text PolicyARep1>
/items = PolicyARep
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.PolicyARep.nextindex
</text>


<text PolicyARep2>
/items= PolicyARep
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.PolicyARep.nextindex
</text>

<list policyARep>
/poolsize =10
/selectionrate = always
/ replace = true
</list>


<text PolicyADem1>
/items= PolicyADem
/txcolor = blue
/animation = path (5000, 1 0%, 90%, 100%, 90%)
/ select = list.PolicyADem.nextindex
</text>

<text PolicyADem2>
/items= PolicyADem
/txcolor = blue
/animation = path (5000, 1 0%, 90%, 100%, 90%)
/ select = list.PolicyADem.nextindex
</text>

<list PolicyADem>
/ poolsize = 10
/ selectionrate = always
/ replace = true
</list>


<text PolicyBRep1>
/items = PolicyBRep
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.policyBRep.nextindex
</text>

<text PolicyBRep2>
/items = PolicyBRep
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.policyBRep.nextindex
</text>

<text PolicyBDem1>
/items = PolicyBDem
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.policyBDem.nextindex
</text>

<text PolicyBDem2>
/items = PolicyBDem
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.policyBDem.nextindex
</text>



<trial PolicyADem>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ beginresponsetime = 0
/ stimulustimes = [0=replace(PolicyADem1); 1000=replace(PolicyARep1); 2000=replace(PolicyADem2);
3000= replace(PolicyARep2)]
</trial>

<trial PolicyARep>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ beginresponsetime = 0
/ stimulustimes = [0=replace(PolicyARep1); 1000=replace(PolicyADem1); 2000=replace(PolicyARep2);
3000= replace(PolicyADem2)]
</trial>

<trial PolicyBDem>
/validresponse = ("E", "I")
/ correctresponse = ("E")
/ beginresponsetime = 0
/ stimulustimes = [0=replace(PolicyBDem1); 1000=replace(PolicyBRep1); 2000=replace(PolicyBDem2);
3000= replace(PolicyBRep2)]
</trial>

<trial PolicyBRep>
/validresponse = ("E", "I")
/ correctresponse = ("E")
/ beginresponsetime = 0
/ stimulustimes = [0=replace(PolicyBRep1); 1000=replace(PolicyBDem1); 2000=replace(PolicyBRep2);
3000= replace(PolicyBDem2)]
</trial>





<block test1 >
/trials= [ 1= replace(PolicyADem); 2=replace(PolicyBRep)]
</block>

<block test2>
/trials =[1=replace(PolicyARep); 2=replace(PolicyBDem)]
</block>

<expt>
/blocks= [ 1= test1;2= test2]
/subjects = (1of 2)
</expt>

<expt>
/blocks= [1= test2; 2= test1]
/subjects = (2 of 2)
</expt>


You've set the <text> element's selection to be determined by a <list> element called "policyBRep".


<text PolicyBRep1>
/items = PolicyBRep
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.policyBRep.nextindex
</text>

There is no such <list> element in the code you posted and that's why you're (rightly) getting that error.
Edited 4 Years Ago by Dave
uni-student92084
uni-student92084
Partner Member (608 reputation)Partner Member (608 reputation)Partner Member (608 reputation)Partner Member (608 reputation)Partner Member (608 reputation)Partner Member (608 reputation)Partner Member (608 reputation)Partner Member (608 reputation)Partner Member (608 reputation)
Group: Forum Members
Posts: 57, Visits: 172
Dave - 1/28/2020
Kksham052 - 1/28/2020
Hello, 
Whenever I tried to run my script, the program tells me that "the expression 'list.policyBRep/next' is invalid. Expression contains an unknown element or property name"
This error is in regard to my /select=list.policyBRep.nextindex in my text elements: 

<text PolicyBRep1>
/items = PolicyBRep
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.policyBRep.nextindex
</text>

I don't know what is wrong with this section of my script, could someone tell me what I'm going wrong? 

This is the whole script for context:

<item PolicyARep>
/1 = "score1"
/2 = "score2"
/3 = "score3"
/4 = "score4"
/5 = "score5"
/6 = "score6"
/7 = "score7"
/8 = "score8"
/9 = "score9"
/10 = "score10"
</item>


<item PolicyADem>
/1= "score1"
/2= "score2"
/3= "score3"
/4 = "score4"
/5 = "score5"
/6 = "score6"
/7 = "score7"
/8 = "score8"
/9 = "score9"
/10 = "score10"
</item>


<item PolicyBRep>
/1 = "score1"
/2 = "score2"
/3 = "score3"
/4 = "score4"
/5 = "score5"
/6 = "score6"
/7 = "score7"
/8 = "score8"
/9 = "score9"
/10 = "score10"
</item>

<item PolicyBDem>
/1 = "score1"
/2 = "score2"
/3 = "score3"
/4 = "score4"
/5 = "score5"
/6 = "score6"
/7 = "score7"
/8 = "score8"
/9 = "score9"
/10 = "score10"
</item>



<text PolicyARep1>
/items = PolicyARep
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.PolicyARep.nextindex
</text>


<text PolicyARep2>
/items= PolicyARep
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.PolicyARep.nextindex
</text>

<list policyARep>
/poolsize =10
/selectionrate = always
/ replace = true
</list>


<text PolicyADem1>
/items= PolicyADem
/txcolor = blue
/animation = path (5000, 1 0%, 90%, 100%, 90%)
/ select = list.PolicyADem.nextindex
</text>

<text PolicyADem2>
/items= PolicyADem
/txcolor = blue
/animation = path (5000, 1 0%, 90%, 100%, 90%)
/ select = list.PolicyADem.nextindex
</text>

<list PolicyADem>
/ poolsize = 10
/ selectionrate = always
/ replace = true
</list>


<text PolicyBRep1>
/items = PolicyBRep
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.policyBRep.nextindex
</text>

<text PolicyBRep2>
/items = PolicyBRep
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.policyBRep.nextindex
</text>

<text PolicyBDem1>
/items = PolicyBDem
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.policyBDem.nextindex
</text>

<text PolicyBDem2>
/items = PolicyBDem
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.policyBDem.nextindex
</text>



<trial PolicyADem>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ beginresponsetime = 0
/ stimulustimes = [0=replace(PolicyADem1); 1000=replace(PolicyARep1); 2000=replace(PolicyADem2);
3000= replace(PolicyARep2)]
</trial>

<trial PolicyARep>
/ validresponse = ("E", "I")
/ correctresponse = ("E")
/ beginresponsetime = 0
/ stimulustimes = [0=replace(PolicyARep1); 1000=replace(PolicyADem1); 2000=replace(PolicyARep2);
3000= replace(PolicyADem2)]
</trial>

<trial PolicyBDem>
/validresponse = ("E", "I")
/ correctresponse = ("E")
/ beginresponsetime = 0
/ stimulustimes = [0=replace(PolicyBDem1); 1000=replace(PolicyBRep1); 2000=replace(PolicyBDem2);
3000= replace(PolicyBRep2)]
</trial>

<trial PolicyBRep>
/validresponse = ("E", "I")
/ correctresponse = ("E")
/ beginresponsetime = 0
/ stimulustimes = [0=replace(PolicyBRep1); 1000=replace(PolicyBDem1); 2000=replace(PolicyBRep2);
3000= replace(PolicyBDem2)]
</trial>





<block test1 >
/trials= [ 1= replace(PolicyADem); 2=replace(PolicyBRep)]
</block>

<block test2>
/trials =[1=replace(PolicyARep); 2=replace(PolicyBDem)]
</block>

<expt>
/blocks= [ 1= test1;2= test2]
/subjects = (1of 2)
</expt>

<expt>
/blocks= [1= test2; 2= test1]
/subjects = (2 of 2)
</expt>


You've set the <text> element's selection to be determined by a <list> element called "policyBRep".


<text PolicyBRep1>
/items = PolicyBRep
/txcolor = (red)
/txbgcolor = (white)
/animation = path (5000, 1, 0%, 90%, 100%, 90%)
/select= list.policyBRep.nextindex
</text>

There is no such <list> element in the code you posted and that's why you're (rightly) getting that error.

Oh right! Thanks, Dave!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search