up Inquisit Language Reference

item function

Returns the item at the specified index.

Member of

<list>

Syntax

list.name.item(index)

Return Type

value

Parameters

Name Type Description
index integer The index of the item to get. The first item in the list is 1.

Remarks

The item function returns an item from an element's list of items. When called on a list element, for example, the function returns an item from the selection pool. When called from a stimulus element, a stimulus item is returned.

Examples

The following displays an item from one text element in the item from another text element:

<text myText>
/ items= ("current category = <% text.someothertext.item(1) %>")
</text>

The following displays a stimulus item in an instruction page:

<page myPage>
current category  = <% text.current.item(10) %>
</page>

Copyright Millisecond Software, LLC. All rights reserved.