Select from lists and display


Author
Message
wuaham
wuaham
Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)Partner Member (510 reputation)
Group: Forum Members
Posts: 38, Visits: 173
Dear Inquisit:

I wish to implement an an algorithm as follows:

1. Display a pair of text from 2 different list (e.g list left, list right) (press space bar)
2. Display one of the text (selected in step 1) (press space bar)
3. Display again the text pair (selected in step 1) (press space bar)
4. Repeat step 1-3 over all items in the list (now only 4 in each list, it could be more)

Step-1 is working okay. My problem is in step 2 to step 3 (I cannot think of how to) display the same one text (out of two selected in step-1) and then display the same pair again (Let display location remain same). I would appreciate your support. I have the code as follows:

<values>
/ randNum = 0
/ leftItem = ""
/ rightItem = ""
</values>

<block myblock>
/ trials = [1-4=bothLeftRight]
/ recorddata = false
</block>

<trial bothLeftRight>
/ ontrialbegin = [values.randNum = rand(0,10)]
/ stimulustimes = [0=left, right]
/ validresponse = (57)
/ ontrialend = [values.leftItem = item.left; values.rightItem = item.right]
/ branch=[if (values.randNum < 5) trial.left]
/ branch=[if (values.randNum >= 5) trial.right]
</trial>

<trial left>
/ stimulustimes = [0 = left]
/ validresponse = (57)
</trial>

<trial right>
/ stimulustimes = [0 = right]
/ validresponse = (57)
</trial>

<text left>
/ items = left
/ select = list.left.nextindex
/ position = (40%, 50%)
</text>

<text right>
/ items = right
/ select = list.right.nextindex
/ position = (60%, 50%)
</text>

<item left>
/ 1 = "A"
/ 2 = "B"
/ 3 = "C"
/ 4 = "D"
</item>

<item right>
/ 1 = "E"
/ 2 = "F"
/ 3 = "G"
/ 4 = "H"
</item>

<list left>
/ poolsize = 4
/ selectionrate = always
</list>

<list right>
/ poolsize = 4
/ selectionrate = always
</list>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
wuaham - 4 Years Ago
Dave - 4 Years Ago
             Excellent Dave - it works!!!
wuaham - 4 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search