User`s guide

E-Prime User’s Guide
Chapter 4: Using E-Basic
Page 130
Section Purpose
Syntax Describes the parameters necessary for use with the statement, function, command or
object.
Description Describes the purpose of the statement, function, command or object.
Comments Lists specific considerations for the statement, function, command or object.
Example Actual script example illustrating the use of the statement, function, command or object.
See Also Direct links to related statements, topics, functions, commands or objects.
4.2.3 Handling Errors in the Script
For detailed information related to error handling, refer to the section 4.8-Debugging in E-Prime.
4.3 Communicating with E-Prime Objects
Before attempting to write E-Basic script, it is useful to understand how information is managed
within E-Basic and E-Prime. Within E-Basic, data and routines acting on that data may be
encapsulated into units called "objects.” For example, at the trial level, the List object is an
encapsulation of the trial level data (e.g., stimuli, independent variables, etc.) and the routines
applied to that data (e.g., TrialProc).
In the image below, each line in the TrialList object lists a specific exemplar. The Stimulus and
CorrectAnswer attributes contain the trial level data necessary for presenting the stimulus and
scoring the input collected from the subject. The Procedure attribute indicates which routine is to
be associated with the specific piece of data. In this case, the TrialProc Procedure, which calls
individual objects to present a fixation, stimulus, and feedback, is applied to the specific stimulus
(i.e., X or Y).