Displaying variables in a while loop - 09/12/11 03:32 PM
I have been searching and trying for hours, but I can't make it work:
Let's say I have variables called
%test.1
%test.2
...
%test.10
Now I want to use a while loop to display them all. Something like:
var %i = 1
while (%i <= 10) {
echo 2 %test.%i
inc %i
}
The above code doesn't work. How do I make it work?
Thanks!
Let's say I have variables called
%test.1
%test.2
...
%test.10
Now I want to use a while loop to display them all. Something like:
var %i = 1
while (%i <= 10) {
echo 2 %test.%i
inc %i
}
The above code doesn't work. How do I make it work?
Thanks!