Defining variables
We will now look into defining variables in the following sections.
Variable location and scope
Variables are defined in the Designer navigator either under a given project or as global objects.
Project variables can only be used in the project where they are defined. Global variables can be used in any project. We will see later in this chapter that variables can be used to make models more dynamic. When using variables in models, we have to be very careful and make sure that if we use project variables, the model is not used in another project where the variable is not defined. If a model is shared across projects, and if that model must be dynamic, then make sure to use global variables in the model.
Note
The notion of a global variable only means that variables can be used in different projects. It does not necessarily mean that the same value will be shared by all projects. The value of a variable is local to a project and is based on how and when the value is set. From...