# Else if statement with movie clips

**URL:** <https://forum.kirupa.com/t/else-if-statement-with-movie-clips/115437>\
**Category:** Uncategorized\
**Created:** [July 8, 2004, 5:22pm UTC](https://forum.kirupa.com/t/else-if-statement-with-movie-clips/115437 "2004-07-08T17:22:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![obey1](https://avatars.discourse-cdn.com/v4/letter/o/fbc32d/32.png) [@obey1](https://forum.kirupa.com/u/obey1)\
**Post date:** [July 8, 2004, 5:22pm UTC](https://forum.kirupa.com/t/else-if-statement-with-movie-clips/115437/1 "2004-07-08T17:22:45Z")

</div>

i’m trying to control the movement of a movie clip which is determined by what frame label it is currently at.

if the frame of the movie clip is at “still”, then i want it to gotoAndPlay("up). if the frame is at the label “up” i want the clip to play “restore”.

i’m not sure how to phrase the action, but here’s what i’ve got so far (i know its wrong because it won’t work):

```auto

on (release) {
	if (this._currentframe === ("still")) {
		gotoAndPlay("up");
	} else {
		gotoAndPlay("restore");
	}
}

```

thanks for any help you can give.
