User`s guide
E-Prime User’s Guide
Chapter 4: Using E-Basic
Page 149
Session
Level
Context
Block
Level
Context
Trial
Level
Context
'Set TotalTrial=10
c.SetAttrib "TotalTrial,” 10
Once an attribute is put into the context, the information is logged in the data file and the attribute
may be used to display information by way of a display object (e.g., a TextDisplay).
The TotalTrial attribute will be available in the context during the scope of the level at which it
has been defined. For example, if TotalTrial is defined (using SetAttrib) during the block
Procedure, it will be available during the context of the block level, and any context levels
subordinate to the block (e.g., trial level, sub-trial, etc.). However, outside of that scope, the
TotalTrial attribute value will not be available. There is no backward inheritance possible,
which would allow higher levels to inherit attribute information from lower levels.
An attribute must be defined before it is referenced, or error messages will result indicating that
the attribute does not exist. For example, if an attribute is defined at the trial level, and
referenced at the block level (prior to the trial), an error will occur related to the declaration of the
attribute.