pointer for lists


Author
Message
nrouhani
nrouhani
Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)
Group: Forum Members
Posts: 54, Visits: 209
hi, 

i have a pretty complicated experiment that has many conditions and counterbalancing. is it possible to have a pointer for lists? 
so for example if i have the below list and would like it to be called in block 1, could i have something like list.block1 = list.lr_2080? 
<list lr_2080>
/ items = (2,1,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,2,1,1,2,1,1,2,2,1,2,1)
/ selectionmode = sequence
</list>

thank you!
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: 83K
nrouhani - 5/31/2022
hi, 

i have a pretty complicated experiment that has many conditions and counterbalancing. is it possible to have a pointer for lists? 
so for example if i have the below list and would like it to be called in block 1, could i have something like list.block1 = list.lr_2080? 
<list lr_2080>
/ items = (2,1,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,2,1,1,2,1,1,2,2,1,2,1)
/ selectionmode = sequence
</list>

thank you!

You can have a list of lists and select whatever list you want via a variable.

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

with values.listnumber = 1 for list A,
values.listnumber = 2 for list B, and
values.listnumber = 3 for list C.

You simply always sample from list.list_of_lists per its nextvalue.

<item myitems>
/ 1 = "A1"
/ 2 = "A2"
/ 3 = "A3"

/ 4 = "B1"
/ 5 = "B2"
/ 6 = "B3"

/ 7 = "C1"
/ 8 = "C2"
/ 9 = "C3"
</item>

<text mytext>
/ items = myitems
/ select = values.itemnumber
</text>

<list a>
/ items = (1,2,3)
/ selectionmode = sequence
</list>

<list b>
/ items = (4,5,6)
/ selectionmode = sequence
</list>

<list c>
/ items = (7,8,9)
/ selectionmode = sequence
</list>

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

<values>
/ itemnumber = 0
/ listnumber = 0
</values>

<block example>
/ onblockbegin = [
    values.listnumber = 2; // set to 1, 2 or 3 depending on the list you want to run
]
/ trials = [1-3 = mytrial]
</block>

<trial mytrial>
/ ontrialbegin = [
    values.itemnumber = list.list_of_lists.nextvalue;
]
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

Edited 2 Months Ago by Dave
nrouhani
nrouhani
Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)
Group: Forum Members
Posts: 54, Visits: 209
Dave - 6/1/2022
nrouhani - 5/31/2022
hi, 

i have a pretty complicated experiment that has many conditions and counterbalancing. is it possible to have a pointer for lists? 
so for example if i have the below list and would like it to be called in block 1, could i have something like list.block1 = list.lr_2080? 
<list lr_2080>
/ items = (2,1,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,2,1,1,2,1,1,2,2,1,2,1)
/ selectionmode = sequence
</list>

thank you!

You can have a list of lists, however, and select whatever list you want via a variable.

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

with values.listnumber = 1 for list A,
values.listnumber = 2 for list B, and
values.listnumber = 3 for list C.

You simply always sample from list.list_of_lists per its nextvalue.

<item myitems>
/ 1 = "A1"
/ 2 = "A2"
/ 3 = "A3"

/ 4 = "B1"
/ 5 = "B2"
/ 6 = "B3"

/ 7 = "C1"
/ 8 = "C2"
/ 9 = "C3"
</item>

<text mytext>
/ items = myitems
/ select = values.itemnumber
</text>

<list a>
/ items = (1,2,3)
/ selectionmode = sequence
</list>

<list b>
/ items = (4,5,6)
/ selectionmode = sequence
</list>

<list c>
/ items = (7,8,9)
/ selectionmode = sequence
</list>

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

<values>
/ itemnumber = 0
/ listnumber = 0
</values>

<block example>
/ onblockbegin = [
    values.listnumber = 2; // set to 1, 2 or 3 depending on the list you want to run
]
/ trials = [1-3 = mytrial]
</block>

<trial mytrial>
/ ontrialbegin = [
    values.itemnumber = list.list_of_lists.nextvalue;
]
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

thank you! could i use this list of lists across blocks? (i.e., would the values reset at each block?)
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: 83K
nrouhani - 6/1/2022
Dave - 6/1/2022
nrouhani - 5/31/2022
hi, 

i have a pretty complicated experiment that has many conditions and counterbalancing. is it possible to have a pointer for lists? 
so for example if i have the below list and would like it to be called in block 1, could i have something like list.block1 = list.lr_2080? 
<list lr_2080>
/ items = (2,1,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,2,1,1,2,1,1,2,2,1,2,1)
/ selectionmode = sequence
</list>

thank you!

You can have a list of lists, however, and select whatever list you want via a variable.

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

with values.listnumber = 1 for list A,
values.listnumber = 2 for list B, and
values.listnumber = 3 for list C.

You simply always sample from list.list_of_lists per its nextvalue.

<item myitems>
/ 1 = "A1"
/ 2 = "A2"
/ 3 = "A3"

/ 4 = "B1"
/ 5 = "B2"
/ 6 = "B3"

/ 7 = "C1"
/ 8 = "C2"
/ 9 = "C3"
</item>

<text mytext>
/ items = myitems
/ select = values.itemnumber
</text>

<list a>
/ items = (1,2,3)
/ selectionmode = sequence
</list>

<list b>
/ items = (4,5,6)
/ selectionmode = sequence
</list>

<list c>
/ items = (7,8,9)
/ selectionmode = sequence
</list>

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

<values>
/ itemnumber = 0
/ listnumber = 0
</values>

<block example>
/ onblockbegin = [
    values.listnumber = 2; // set to 1, 2 or 3 depending on the list you want to run
]
/ trials = [1-3 = mytrial]
</block>

<trial mytrial>
/ ontrialbegin = [
    values.itemnumber = list.list_of_lists.nextvalue;
]
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

thank you! could i use this list of lists across blocks? (i.e., would the values reset at each block?)

Not sure what you mean. Please be more specific.
nrouhani
nrouhani
Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)
Group: Forum Members
Posts: 54, Visits: 209
nrouhani - 6/1/2022
Dave - 6/1/2022
nrouhani - 5/31/2022
hi, 

i have a pretty complicated experiment that has many conditions and counterbalancing. is it possible to have a pointer for lists? 
so for example if i have the below list and would like it to be called in block 1, could i have something like list.block1 = list.lr_2080? 
<list lr_2080>
/ items = (2,1,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,2,1,1,2,1,1,2,2,1,2,1)
/ selectionmode = sequence
</list>

thank you!

You can have a list of lists, however, and select whatever list you want via a variable.

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

with values.listnumber = 1 for list A,
values.listnumber = 2 for list B, and
values.listnumber = 3 for list C.

You simply always sample from list.list_of_lists per its nextvalue.

<item myitems>
/ 1 = "A1"
/ 2 = "A2"
/ 3 = "A3"

/ 4 = "B1"
/ 5 = "B2"
/ 6 = "B3"

/ 7 = "C1"
/ 8 = "C2"
/ 9 = "C3"
</item>

<text mytext>
/ items = myitems
/ select = values.itemnumber
</text>

<list a>
/ items = (1,2,3)
/ selectionmode = sequence
</list>

<list b>
/ items = (4,5,6)
/ selectionmode = sequence
</list>

<list c>
/ items = (7,8,9)
/ selectionmode = sequence
</list>

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

<values>
/ itemnumber = 0
/ listnumber = 0
</values>

<block example>
/ onblockbegin = [
    values.listnumber = 2; // set to 1, 2 or 3 depending on the list you want to run
]
/ trials = [1-3 = mytrial]
</block>

<trial mytrial>
/ ontrialbegin = [
    values.itemnumber = list.list_of_lists.nextvalue;
]
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

thank you! could i use this list of lists across blocks? (i.e., would the values reset at each block?)

could each block iterate through the items within the list of lists (by using nextvalue)?
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: 83K
nrouhani - 6/1/2022
nrouhani - 6/1/2022
Dave - 6/1/2022
nrouhani - 5/31/2022
hi, 

i have a pretty complicated experiment that has many conditions and counterbalancing. is it possible to have a pointer for lists? 
so for example if i have the below list and would like it to be called in block 1, could i have something like list.block1 = list.lr_2080? 
<list lr_2080>
/ items = (2,1,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,2,1,1,2,1,1,2,2,1,2,1)
/ selectionmode = sequence
</list>

thank you!

You can have a list of lists, however, and select whatever list you want via a variable.

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

with values.listnumber = 1 for list A,
values.listnumber = 2 for list B, and
values.listnumber = 3 for list C.

You simply always sample from list.list_of_lists per its nextvalue.

<item myitems>
/ 1 = "A1"
/ 2 = "A2"
/ 3 = "A3"

/ 4 = "B1"
/ 5 = "B2"
/ 6 = "B3"

/ 7 = "C1"
/ 8 = "C2"
/ 9 = "C3"
</item>

<text mytext>
/ items = myitems
/ select = values.itemnumber
</text>

<list a>
/ items = (1,2,3)
/ selectionmode = sequence
</list>

<list b>
/ items = (4,5,6)
/ selectionmode = sequence
</list>

<list c>
/ items = (7,8,9)
/ selectionmode = sequence
</list>

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

<values>
/ itemnumber = 0
/ listnumber = 0
</values>

<block example>
/ onblockbegin = [
    values.listnumber = 2; // set to 1, 2 or 3 depending on the list you want to run
]
/ trials = [1-3 = mytrial]
</block>

<trial mytrial>
/ ontrialbegin = [
    values.itemnumber = list.list_of_lists.nextvalue;
]
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

thank you! could i use this list of lists across blocks? (i.e., would the values reset at each block?)

could each block iterate through the items within the list of lists (by using nextvalue)?

This does not clear anything up -- the "items within the list of lists" are lists. It's not clear what you want to iterate through.
Please state clearly what exactly you want to do. Then I can answer your question.

nrouhani
nrouhani
Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)
Group: Forum Members
Posts: 54, Visits: 209
Dave - 6/1/2022
nrouhani - 6/1/2022
nrouhani - 6/1/2022
Dave - 6/1/2022
nrouhani - 5/31/2022
hi, 

i have a pretty complicated experiment that has many conditions and counterbalancing. is it possible to have a pointer for lists? 
so for example if i have the below list and would like it to be called in block 1, could i have something like list.block1 = list.lr_2080? 
<list lr_2080>
/ items = (2,1,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,2,1,1,2,1,1,2,2,1,2,1)
/ selectionmode = sequence
</list>

thank you!

You can have a list of lists, however, and select whatever list you want via a variable.

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

with values.listnumber = 1 for list A,
values.listnumber = 2 for list B, and
values.listnumber = 3 for list C.

You simply always sample from list.list_of_lists per its nextvalue.

<item myitems>
/ 1 = "A1"
/ 2 = "A2"
/ 3 = "A3"

/ 4 = "B1"
/ 5 = "B2"
/ 6 = "B3"

/ 7 = "C1"
/ 8 = "C2"
/ 9 = "C3"
</item>

<text mytext>
/ items = myitems
/ select = values.itemnumber
</text>

<list a>
/ items = (1,2,3)
/ selectionmode = sequence
</list>

<list b>
/ items = (4,5,6)
/ selectionmode = sequence
</list>

<list c>
/ items = (7,8,9)
/ selectionmode = sequence
</list>

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

<values>
/ itemnumber = 0
/ listnumber = 0
</values>

<block example>
/ onblockbegin = [
    values.listnumber = 2; // set to 1, 2 or 3 depending on the list you want to run
]
/ trials = [1-3 = mytrial]
</block>

<trial mytrial>
/ ontrialbegin = [
    values.itemnumber = list.list_of_lists.nextvalue;
]
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

thank you! could i use this list of lists across blocks? (i.e., would the values reset at each block?)

could each block iterate through the items within the list of lists (by using nextvalue)?

This does not clear anything up -- the "items within the list of lists" are lists. It's not clear what you want to iterate through.
Please state clearly what exactly you want to do. Then I can answer your question.
do i have to manually set in 1,2,3 when calling up the list of lists in each block or can i iterate through the items (that i am aware are also lists). 
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: 83K
nrouhani - 6/1/2022
Dave - 6/1/2022
nrouhani - 6/1/2022
nrouhani - 6/1/2022
Dave - 6/1/2022
nrouhani - 5/31/2022
hi, 

i have a pretty complicated experiment that has many conditions and counterbalancing. is it possible to have a pointer for lists? 
so for example if i have the below list and would like it to be called in block 1, could i have something like list.block1 = list.lr_2080? 
<list lr_2080>
/ items = (2,1,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,2,1,1,2,1,1,2,2,1,2,1)
/ selectionmode = sequence
</list>

thank you!

You can have a list of lists, however, and select whatever list you want via a variable.

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

with values.listnumber = 1 for list A,
values.listnumber = 2 for list B, and
values.listnumber = 3 for list C.

You simply always sample from list.list_of_lists per its nextvalue.

<item myitems>
/ 1 = "A1"
/ 2 = "A2"
/ 3 = "A3"

/ 4 = "B1"
/ 5 = "B2"
/ 6 = "B3"

/ 7 = "C1"
/ 8 = "C2"
/ 9 = "C3"
</item>

<text mytext>
/ items = myitems
/ select = values.itemnumber
</text>

<list a>
/ items = (1,2,3)
/ selectionmode = sequence
</list>

<list b>
/ items = (4,5,6)
/ selectionmode = sequence
</list>

<list c>
/ items = (7,8,9)
/ selectionmode = sequence
</list>

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

<values>
/ itemnumber = 0
/ listnumber = 0
</values>

<block example>
/ onblockbegin = [
    values.listnumber = 2; // set to 1, 2 or 3 depending on the list you want to run
]
/ trials = [1-3 = mytrial]
</block>

<trial mytrial>
/ ontrialbegin = [
    values.itemnumber = list.list_of_lists.nextvalue;
]
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

thank you! could i use this list of lists across blocks? (i.e., would the values reset at each block?)

could each block iterate through the items within the list of lists (by using nextvalue)?

This does not clear anything up -- the "items within the list of lists" are lists. It's not clear what you want to iterate through.
Please state clearly what exactly you want to do. Then I can answer your question.
do i have to manually set in 1,2,3 when calling up the list of lists in each block or can i iterate through the items (that i am aware are also lists). 

You can set values.listnumber in whichever way you want

nrouhani
nrouhani
Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)Esteemed Member (2.4K reputation)
Group: Forum Members
Posts: 54, Visits: 209
Dave - 6/1/2022
nrouhani - 6/1/2022
Dave - 6/1/2022
nrouhani - 6/1/2022
nrouhani - 6/1/2022
Dave - 6/1/2022
nrouhani - 5/31/2022
hi, 

i have a pretty complicated experiment that has many conditions and counterbalancing. is it possible to have a pointer for lists? 
so for example if i have the below list and would like it to be called in block 1, could i have something like list.block1 = list.lr_2080? 
<list lr_2080>
/ items = (2,1,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,2,1,1,2,1,1,2,2,1,2,1)
/ selectionmode = sequence
</list>

thank you!

You can have a list of lists, however, and select whatever list you want via a variable.

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

with values.listnumber = 1 for list A,
values.listnumber = 2 for list B, and
values.listnumber = 3 for list C.

You simply always sample from list.list_of_lists per its nextvalue.

<item myitems>
/ 1 = "A1"
/ 2 = "A2"
/ 3 = "A3"

/ 4 = "B1"
/ 5 = "B2"
/ 6 = "B3"

/ 7 = "C1"
/ 8 = "C2"
/ 9 = "C3"
</item>

<text mytext>
/ items = myitems
/ select = values.itemnumber
</text>

<list a>
/ items = (1,2,3)
/ selectionmode = sequence
</list>

<list b>
/ items = (4,5,6)
/ selectionmode = sequence
</list>

<list c>
/ items = (7,8,9)
/ selectionmode = sequence
</list>

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

<values>
/ itemnumber = 0
/ listnumber = 0
</values>

<block example>
/ onblockbegin = [
    values.listnumber = 2; // set to 1, 2 or 3 depending on the list you want to run
]
/ trials = [1-3 = mytrial]
</block>

<trial mytrial>
/ ontrialbegin = [
    values.itemnumber = list.list_of_lists.nextvalue;
]
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

thank you! could i use this list of lists across blocks? (i.e., would the values reset at each block?)

could each block iterate through the items within the list of lists (by using nextvalue)?

This does not clear anything up -- the "items within the list of lists" are lists. It's not clear what you want to iterate through.
Please state clearly what exactly you want to do. Then I can answer your question.
do i have to manually set in 1,2,3 when calling up the list of lists in each block or can i iterate through the items (that i am aware are also lists). 

You can set values.listnumber in whichever way you want

thank you
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: 83K
nrouhani - 6/1/2022
Dave - 6/1/2022
nrouhani - 6/1/2022
Dave - 6/1/2022
nrouhani - 6/1/2022
nrouhani - 6/1/2022
Dave - 6/1/2022
nrouhani - 5/31/2022
hi, 

i have a pretty complicated experiment that has many conditions and counterbalancing. is it possible to have a pointer for lists? 
so for example if i have the below list and would like it to be called in block 1, could i have something like list.block1 = list.lr_2080? 
<list lr_2080>
/ items = (2,1,1,2,2,1,2,1,1,2,2,1,2,1,1,2,2,1,2,2,1,1,2,1,1,2,2,1,2,1)
/ selectionmode = sequence
</list>

thank you!

You can have a list of lists, however, and select whatever list you want via a variable.

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

with values.listnumber = 1 for list A,
values.listnumber = 2 for list B, and
values.listnumber = 3 for list C.

You simply always sample from list.list_of_lists per its nextvalue.

<item myitems>
/ 1 = "A1"
/ 2 = "A2"
/ 3 = "A3"

/ 4 = "B1"
/ 5 = "B2"
/ 6 = "B3"

/ 7 = "C1"
/ 8 = "C2"
/ 9 = "C3"
</item>

<text mytext>
/ items = myitems
/ select = values.itemnumber
</text>

<list a>
/ items = (1,2,3)
/ selectionmode = sequence
</list>

<list b>
/ items = (4,5,6)
/ selectionmode = sequence
</list>

<list c>
/ items = (7,8,9)
/ selectionmode = sequence
</list>

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

<values>
/ itemnumber = 0
/ listnumber = 0
</values>

<block example>
/ onblockbegin = [
    values.listnumber = 2; // set to 1, 2 or 3 depending on the list you want to run
]
/ trials = [1-3 = mytrial]
</block>

<trial mytrial>
/ ontrialbegin = [
    values.itemnumber = list.list_of_lists.nextvalue;
]
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

thank you! could i use this list of lists across blocks? (i.e., would the values reset at each block?)

could each block iterate through the items within the list of lists (by using nextvalue)?

This does not clear anything up -- the "items within the list of lists" are lists. It's not clear what you want to iterate through.
Please state clearly what exactly you want to do. Then I can answer your question.
do i have to manually set in 1,2,3 when calling up the list of lists in each block or can i iterate through the items (that i am aware are also lists). 

You can set values.listnumber in whichever way you want

thank you

Here's an extended example implementing three conditions -- each running the three lists in different orders:

<item myitems>
/ 1 = "A1"
/ 2 = "A2"
/ 3 = "A3"

/ 4 = "B1"
/ 5 = "B2"
/ 6 = "B3"

/ 7 = "C1"
/ 8 = "C2"
/ 9 = "C3"
</item>

<text mytext>
/ items = myitems
/ select = values.itemnumber
</text>

<list a>
/ items = (1,2,3)
/ selectionmode = sequence
</list>

<list b>
/ items = (4,5,6)
/ selectionmode = sequence
</list>

<list c>
/ items = (7,8,9)
/ selectionmode = sequence
</list>

<list list_of_lists>
/ items = (list.a.nextvalue, list.b.nextvalue, list.c.nextvalue)
/ selectionmode = values.listnumber
</list>

<values>
/ itemnumber = 0
/ listnumber = 0
/ listorder = 0
</values>

<block example>
/ onblockbegin = [
    values.listnumber = list.listorders.nextvalue;
]
/ trials = [1-3 = mytrial]
</block>

<trial mytrial>
/ ontrialbegin = [
    values.itemnumber = list.list_of_lists.nextvalue;
]
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<expt>
/ onexptbegin = [
    values.listorder = 1;
]
/ groups = (1 of 3)
/ blocks = [1-3 = example]
</expt>

<expt>
/ onexptbegin = [
    values.listorder = 2;
]
/ groups = (2 of 3)
/ blocks = [1-3 = example]
</expt>

<expt>
/ onexptbegin = [
    values.listorder = 3;
]
/ groups = (3 of 3)
/ blocks = [1-3 = example]
</expt>

<list listorders>
/ items = (list.order1.nextvalue, list.order2.nextvalue, list.order3.nextvalue)
/ selectionmode = values.listorder
</list>

<list order1>
/ items = (1,2,3)
/ selectionmode = sequence
</list>

<list order2>
/ items = (2,3,1)
/ selectionmode = sequence
</list>

<list order3>
/ items = (3,1,2)
/ selectionmode = sequence
</list>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search