up Inquisit Language Reference

setitem function

Sets the item at the specified index.

Member of









element.name.setitem(value, index)


Name Type Description
value any The new value for the item.
index integer The index of the item to set. The first item in the list is 1.


The following sets the first item of a text stimulus:

<trial sometrial>
/ ontrialend= [text.sometext.setitem("Hello world!", 1);]

The following sets the last item of the selection pool of a list:

<trial sometrial>
/ ontrialend= [list.mylist.setitem(values.newvalue, list.mylist.itemcount);]

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