UFH Variable Creation and Scope
All variables are either global [visible to the entire script] or auto [visible only within the function where they were defined].
Global variables are created just by being referenced. To create a global variable, assign something to it. Global variables retain their values forever unless a new value is assigned to the variable.
Auto variables are created by placing auto statements in the beginning of a function body. Auto variables are automatically freed when the function is which they are declared returns.
Examples
Here the first i is declared global and has the value 7 assigned. In func OnTrace() we define local or auto variables i,j and k and assign the local i value to be 1. Note that the global i variable still has a value of 7 and will have after the close of OnTrace() operation.