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

<counter>

Syntax

/ select = integer

or

/ select = selectionmode

or

/ select = selectionmode(pool)

or

/ select = dependency(stimulusname)

or

/ select = dependency(countername)

or

/ select = countername

Parameters

integer An integer value.
selectionmode One of the following values:
Value Description
noreplace Randomly selects without replacement.
sequence Selects items in sequential order.
noreplacenorepeat Randomly selects without replacement and without selecting any single item multiple consecutive times.
noreplacecorrect Randomly selects without replacement unless an incorrect response is given.
noreplaceerror Randomly selects without replacement unless a correct response is given.
replace Randomly selects with replacement.
replacenorepeat Randomly selects with replacement and without selecting any single item multiple consecutive times.
constant Selects a single constant value.
dependency One of the following values:
Value Description
noreplacenot Randomly selects without replacement, reselecting the item if it matches the currently selected item of the specified stimulus or counter.
replacenot Randomly selects with replacement, reselecting the item if it matches the currently selected item of the specified stimulus or counter.
current Selects the current item of the specified stimulus or counter.
next Selects the next item of the specified stimulus or counter.
stimulusname The name of a stimulus defined elsewhere in the script.
countername The name of a counter defined elsewhere in the script.
pool A set of numbers representing 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>

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.