I remember someone once told me that "i" was just a variable like "x" or "killtimer" or "distance" or even "derplength", yet based on how I see other people use this variable, "i" seems to almost hold some kind of magical value.
Lets say I want to use a variable called "x"
To use this variable, I must first define it as
x = 1
or x = self.Health
or x = (insert random number here)
or something like that
Yet many times I've seen people use the variable "i" without first defining what it is.
For example, in the code, they will directly write
Code:
function (Update)
for i=1 do
*insert random stuff here*
end
Nowhere in the entire code did they write anything about defining what "i" is, which means "i" could be anything, yet the code still executes correctly as if it somehow knew what "i" already is.
So this has just been getting a bit frustrating for me, since I just can't seem to understand whether there's something special about "i" or if "i" is really just a normal variable that is somehow mysteriously defined by unknown programming forces in CC.
Peace.