var p : int = 0;
for(p=0;p=100;p++)
{
//my code here
}
is javascript fooling me? D:
var p : int = 0;
for(p=0;p=100;p++)
{
//my code here
}
is javascript fooling me? D:
Also, please note that p=100 is an assignment and not a comparator. If you ever did need to test that p is 100 (which granted I suspect you don't) you should use p == 100
The condition for the loop to execute is that p should be exactly 100. But you've set p to start at 0, so the loop never executes.
Did you mean to write p < 100?