You can define which portions of the diagram can reference a variable by designating its scope. There are three types of scope: level scope, definition scope, and diagram scope.
See Also:
Level Scope
Definition Scope
Diagram Scope
Making copies of global variables