Group: Administrators
Posts: 13K,
Visits: 104K
|
> If I delete item 1 from a pool it's giving me a pool that looks as follows. > 3 4 5
No, it should give you a pool that looks like 2 3 4 5, which is the expected behavior (run the code below).
<block myblock> / trials = [1=mytrial] </block>
<trial mytrial> / ontrialbegin = [list.mylist.removeitem(1)] / stimulusframes = [1=mytext] / validresponse = (57) </trial>
<list mylist> / items = (1,2,3,4,5) </list>
<text mytext> / items = ("<%list.mylist.item(1)%><%list.mylist.item(2)%><%list.mylist.item(3)%><%list.mylist.item(4)%>") </text>
When you remove 1st item, the 2nd item becomes the new 1st item and so forth. The behavior isn't defective, but intended.
|