up Inquisit Language Reference

onExptEnd attribute

The onExptEnd attribute specifies commands to be run at the end of an expt.

Member of

<expt>

Syntax

/ onExptEnd = { script }

Parameters

Name Type Description
script script

Remarks

This parameter executes one or more specified expressions after an expt is complete. The expressions can read and conditionally update the various properties in the script. This is useful for dynamically configuring the experiment or recording data based on, for example, the subject's performance on that expt.

Examples

The following expt calculates a d score after the expt is complete:

<expt myexpt>
/ blocks=[1=compatible; 2=incompatible)]
/ onExptEnd={
  values.d = (block.incompatible.meanLatency - block.compatible.meanLatency) / expt.myexpt.sdLatency;
}
</expt>

Copyright Millisecond Software, LLC. All rights reserved.