# For loop question

**URL:** <https://forum.kirupa.com/t/for-loop-question/121171>\
**Category:** Uncategorized\
**Created:** [August 31, 2004, 2:57pm UTC](https://forum.kirupa.com/t/for-loop-question/121171 "2004-08-31T14:57:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Locnoi](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/locnoi/32/714_2.png) [@Locnoi](https://forum.kirupa.com/u/Locnoi)\
**Post date:** [August 31, 2004, 2:57pm UTC](https://forum.kirupa.com/t/for-loop-question/121171/1 "2004-08-31T14:57:01Z")

</div>

Hello,

I have a question for using the for loop

I have this code running and it’s doing perfectly fine

for (i = 0; i \<= 20; i ++){  
newMovieName = “movie” + i;  
this[newMovieName].gotoAndPlay(“start”);  
}

what if I want all 21 movies to play except for lets us movie number 7? Is there a way to ask the for loop to skip 7? Thanks!!!

Loc
