The select attribute determines the method by which individual items are selected for presentation on a given trial.
or
/ select = selectmode(list)or
/ select = selectmode(integer, integer, integer, ...)or
/ select = listor
/ select = selectmodeor
/ select = indexName | Type | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
selectmode | selectmodeenum |
|
||||||||||||||||||||||||||||||||
index | value | An expression resolving to an integer indicating index of the item to select. | ||||||||||||||||||||||||||||||||
stimulus | stimulus | The name of a stimulus defined elsewhere in the script. | ||||||||||||||||||||||||||||||||
list | list | The name of a list defined elsewhere in the script. | ||||||||||||||||||||||||||||||||
integer | integer | A set of numbers representing the indexes in the selection pool. |
The default value is noreplace.
On each trial, the following stimulus selects the vice president who served with the corresponding president:
<text vicepresidents>
/ items = vicepresidentitems
/ select = current(presidents)
</text>
The following first selects Jefferson, then Adams, and then Washington:
<text presidents>
/ items = ("George Washington", "John Adams", "Thomas Jefferson")
/ select = sequence(3, 2, 1)
</text>
The following randomly selects mountain pictures and ensures that the selected item isn't the same as the currently selected valley item:
<picture moutains>
/ items = ("rainier.bmp", "baker.jpg", "sainthelens.gif")
/ select = noreplacenot(valleys)
</picture>
The following randomly selects sound files without replacement, except if an incorrect response is give on the trial:
<sound rock>
/ items = ("beatles.wav", "stones.wav", "thewho.wav")
/ select = noreplacecorrect
</sound>