The only difference is that any value the global holds will be available to every template and its value will be saved even if WebSiphon is quit and restart. Because global variables are available to all templates, it is important to understand that all globals must have a unique name associated with it or a conflict will occur. This is particularly helpful when creating function libraries to prevent any potential problems. For further discussion on how functions work with SiphonScript, reference the SiphonScript Functions section of this documentation. Scope A scope is essentially the space where variables exist within a function.
Every script starts with one scope, the 'main' or 'top' scope.
Think of it as every time your script runs, it is within a function block called 'main'. In SiphonScript you have local and global variables. These terms refer to the scope of the variable. The difference between global and local variables is that when a particular scope completes execution, the local variables of that scope are discarded. We'll get into more detail below.