Workspace and Scoping Rules

There are two types of workspaces: Local and Global.

Local workspaces are workspaces in which variables are only defined in the local workspace (for example, in a function). Global workspaces allow variables to be defined everywhere. Persistent variables are local, but allow their value to be retained between function calls. For more on local, global and persistent, see global variables, local variables, and/or persistent variables.