up Inquisit Language Reference

reset function

Deprecated Replaced by reset_item

Resets an element to its original state when the script was first parsed.

Member of

<global>

Syntax

reset(set)

Return Type

none

Parameters

Name Type Description
set set A list, stimulus, item, or counter element.

Remarks

The reset function resets all attributes of an element the original values when the script was parsed. If the script specified a set of static items for the list, list will be reset to those static items.

Examples

The following resets the items from a text stimulus:

<trial myTrial>
/ onTrialEnd= [item.targets.reset();]
</trial>

The following resets the items from the selection pool of a list:

<trial myTrial>
/ onTrialEnd= [list.options.reset();]
</trial>

Copyright Millisecond Software, LLC. All rights reserved.