Objects also have associated methods, which cause objects to perform certain actions. Like properties, methods are accessed using the dot operator in conjunction with the object. Methods may be broken down into Commands and Functions.
Commands
Commands are used to instruct the program to perform an operation. For example, the Run command is used to launch the object named “Stimulus” within the experiment script.
Stimulus.Run
Commands may or may not take parameters. A listing of all commands associated with particular objects is available in the E-Prime Command Reference.
Functions
Like commands, functions are used to instruct the program to perform an operation. In contrast to commands, however, functions are used to perform an operation that returns a value. Functions may also be used within a script statement. For example, a function could be written to calculate the mean value for a set of values. Once defined as a function, a single line of script would be necessary to run the function to calculate a mean.
Next Article: SCRIPTING: Attributes [25772]
Previous Article: SCRIPTING: Object Properties [22876]
Comments
0 comments
Please sign in to leave a comment.