skip var in for loop
skip var in for loop
- Started
- Last post
- 4 Responses
- jpea
ok, in flash, is there a way to skip a certain # in a for loop?
for instance, if you loop through 12 clips named myClip+i and you want to skip doing anything to myClip6
- enjine0
no, not built-in to the for loop syntax.
just use a conditional statement within the for loop body
- caseyc0
well, nothing "built-in" but there is "continue" so you would want something like
for( i=0; i
- caseyc0
grr...
you just need this in the loop, before the stuff you want to skip:
if( i == 6 ) continue;
- jpea0
thanks, that solved my prob :)