Returns the item at the specified index.
string
Name | Type | Description |
---|---|---|
index | integer | The index of the item to get. The first item in the list is 0. |
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.
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>