We've learned how to declared variables and how to change the properties of other objects using E-Basic code. But what if we want to use a variable or attribute not yet coded into our experiment? What if we want an attribute created by what the user at the beginning of the experiment?
We can do this through the Startup Info tab of the Experiment Object Properties, accessed by double-clicking on the Experiment object at the top of the hierarchy. The default is to ask for a subject number and session number, and then to set them as the attributes "Subject" and "Session" which can be used in other parts of the experiment. You can add other startup parameters by clicking on "Add" and choosing whether you want your parameter to be a Number, String, or Choice.
Any other parameters you add can then be used in InLine objects. For example, if we had a startup parameter called "SkipPractice" and made it a choice (either "Yes" or "No"), we could check the value of the SkipPractice attribute and use it to determine whether we should jump to a Label in another part of the experiment:
Try setting different startup parameters and using them in your experiment. If you're following this experiment, see if you can do this exercise: Set a parameter which asks the user to enter a number between 300-1000 to indicate the duration of the ExpStroopSlide. Modify the ExpStoopSlide object to use this new duration.