User`s guide
E-Prime User’s Guide
Chapter 4: Using E-Basic
Page 137
Initialization of global variables cannot occur on the User tab; instead, an InLine object would be
used for this purpose. To initialize a global variable prior to its use (e.g., to initialize the number
of trials to 0), use an InLine object placed appropriately. It is a good practice to initialize variables
as the first event in the Procedure in which they will be used as part of the Procedure setup
events. In this case, global variables exist throughout the scope of the experiment, so
initialization should take place as the first event in the Session Procedure.
The global variable may then be updated during the trial level Procedure to maintain a count
across multiple executions of the Procedure. To use the global variable to update the trial count,
insert an InLine object as the first event in the trial Procedure, and enter script to increase the
count.