The onExptEnd attribute specifies commands to be run at the end of an expt.
<expt>
Name | Type | Description |
---|---|---|
script | script |
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.
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>