up Inquisit Language Reference

item function

Returns the item at the specified index.

Member of

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

Syntax

object.name.item(index)

Return Type

string

Parameters

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

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(0) %>")
</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.