Page 1 of 1
/for loops need a variable?
Posted: Thu Apr 29, 2004 1:32 pm
by MrSmallie
Posted: Thu Apr 29, 2004 1:36 pm
by ml2517
You have to declare a variable and the /next it.
Code: Select all
/declare a int local
/for a 1 to 5
/echo ${a}
/next a
If your question was more to "Why do we have to declare it, just assume it" I don't really see how one declare is a big deal to do.
Posted: Thu Apr 29, 2004 1:38 pm
by Falco72
Because "I" is a variable, else how do you call an object which value change with the time?
Posted: Thu Apr 29, 2004 1:40 pm
by MrSmallie
Bah..stupid me. Having brain overload.
I have a variable as the end #, and just assumed it was talking about that.
Thanks