This article applies to:
E-Prime 3.0
E-Prime 2.0
E-Prime 1.x
Detail
E-Prime uses bracket characters, [ and ], as a special nomenclature to signify an attribute reference. For example, a List object has an Attribute named "theImage" with the values being the images shown during a Slide object (e.g., dog.bmp, cat.bmp). The SlideImage's filename property can then be specified with an Attribute Reference to theImage. This is done by specfying [theImage].
Additionally, an experiment can use these characters in an InLine:
Debug.Print "I can use the [ and ]characters here"
Comments
1 comment
I'm trying to use snippets of programming code as stimuli, which I'd like to read from an attribute in a trial list. However, I'm encountering an error even when I use the backslash character, '\', to escape the special meaning of the '['. Is there a way to escape this within the trial list attribute? Here's an example of the stimuli I'm working with:
["sip" for "temperature" in drinks if drinks[temperature] == "hot"]
Please sign in to leave a comment.