For loop iterator variables in LUA are local to the for loop.
The Glider IDE highlights these in GREEN, as they would a GLOBAL variable.
They should be regular BLACK like local variables.
In the following example the IDE shows the variable “i” as being global.
for i=1,10 do print(i) end