up Inquisit Language Reference

setItem function

Deprecated Replaced by setitem

Sets the item of the given element at the given index to the given value.

Member of

<global>

Syntax

setItem(set, value, index)

Return Type

none

Parameters

Name Type Description
set set A list, stimulus, item, or counter element.
value value The new value for the item.
index integer The index of the item to set. The first item in the list is 1.

Remarks

The setItem function clears the previous value at a specified index and sets it to a new value. When passed in a list element, for example, the function sets a selection pool item. When called on a stimulus element, the stimulus item is set.

Examples


Copyright Millisecond Software, LLC. All rights reserved.