Local Variables
Local variables are variables that exist only for the duration of the script in which they are created and can only be accessed from within that script. They can be created with the /var command:
They can be the same name as, and have no effect on, global variables, You can use /var %name any number of times in any number of scripts, each is only accessable from within its own code block

Here's a couple of little loops to show the same name (%i) being used twice concurrently. (use /testvar)
alias testvar {
var %i = 1
while %i < 3 {
echo -a testvar1 $ord(%i) loop
testvar2
inc %i
}
}
alias -l testvar2 {
var %i = 1
while %i < 3 {
echo -a * testvar2 $ord(%i) loop
inc %i
}
}