The values element contains custom variables that can be retrieved and updated throughout the course of a script.
None.
The values element allows you to store and update values for purposes of tracking, scoring, and displaying information in an experiment. For example, values can be used to count the occurrence of a particular event, tally scores, and keep trial by trial statistics.
Variables declared as values are globally defined for each script and thus are accessible by all elements within a script.
If a script is run as part of a batch script, values can further be used to transfer information from an individual script back to the batch script. This is useful in sharing information amongst all the individual batch scripts.
The following defines and initializes 3 variables for tracking the total score under different conditions.
<values>
/ congruentscore=0
/ incongruentscore=0
/ neutralscore=0
</values>
The following defines a variable that tracks the sum of squares of response latencies.
<values>
/ latencysumofsquares=0</values>