up Inquisit Language Reference

nextIndex property

The index of the next-selected value of a standalone list item or a stimulus list.

Member of

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

Syntax

object.name.nextIndex

Read Only

Type

integer

Remarks

A new index and value are selected according to the selectionRate setting. If the selectionRate is set to "always", for example, this property selects a new index and value from the list everyTime it is accessed. If selectionRate is "trial", a new index and value are selected the first time the property is accessed on a given trial, and the same index is returned every subsequent time the property is accessed on that trial.

To retrieve the current index without causing a new index and value to be selected, see the currentIndex property.

This property is a synonym for the obsolete "selectedindex" property.

Examples

The following displays the value of nextIndex in a text stimulus:

<text myText>
/ items= ("nextIndex = <% text.myText.nextIndex %>")
</text>

The following displays the value of nextIndex in an instruction page:

<page myPage>
nextindex = <% text.myText.nextIndex %>
</page>

Copyright Millisecond Software, LLC. All rights reserved.