Searches the list for a value and returns the index.
<list>
Name | Type | Description |
---|---|---|
value | expression | The value to search for. |
start | integer | Optional. The index where the search starts. |
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>