up Inquisit Language Reference

select attribute

The select attribute determines the method by which individual items are selected for presentation on a given trial.

Member of

<html> <picture> <port> <sound> <text> <video> <xid> <counter>

Syntax

/ select = selectmode(stimulus)

or

/ select = selectmode(list)

or

/ select = selectmode(integer, integer, integer, ...)

or

/ select = list

or

/ select = selectmode

or

/ select = index

Parameters

Name Type Description
selectmode selectmodeenum
ValueDescription
constantConstant selection of a single item.
currentCurrently selected item of a stimulus or counter.
nextNext selected item of a stimulus or counter.
noReplaceRandom selection without replacement.
noReplaceCorrectRandom selection without replacement if response is correct.
noReplaceErrorRandom selection without replacement if response is incorrect.
noReplaceNoRepeatRandom selection without replacement or repeating an item.
noReplaceNotRandom selection without replacement excluding the current item.
notSynonym of noreplacenot.
randomSynonym of noreplace.
replaceRandom selection with replacement.
replaceNoRepeatRandom selection with replacement and without repeating an item.
replaceNotRandom selection with replacement excluding the current item.
sequenceSequential selection in the listed order.
serialSynonym of sequence.
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.

Remarks

The default value is noreplace.

Examples

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>

Copyright Millisecond Software, LLC. All rights reserved.