up Inquisit Language Reference

indexof function

Searches the list for a value and returns the index.

Member of

<list>

Syntax

element.name.indexof(value, start (optional))

Parameters

Name Type Description
value expression The value to search for.
start integer Optional. The index where the search starts.

Examples

The following clears all of the items from a text stimulus:

<trial sometrial>
/ ontrialend= [text.sometext.indexof();]
</trial>

The following clears all of the items from the selection pool of a list:

<trial sometrial>
/ ontrialend= [list.mylist.indexof();]
</trial>

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.