# Problem with if statement

**URL:** https://forum.kirupa.com/t/problem-with-if-statement/53328
**Category:** flash
**Created:** [June 2, 2004, 4:19pm UTC](https://forum.kirupa.com/t/problem-with-if-statement/53328 "2004-06-02T16:19:27Z")
**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: [June 2, 2004, 4:19pm UTC](https://forum.kirupa.com/t/problem-with-if-statement/53328/1 "2004-06-02T16:19:27Z")

</div>

i’ve got a movie clip(b) that i’m controlling with a different movie clip(a)

i have attached the following code to movie clip(a) in order to get mc(b) to work…but its not…need help!

```auto

on (release) {
	if (_root.caseStudy_mc._currentframe == 1) {
		_root.caseStudy_mc.gotoAndPlay("up");
	}
	_root.caseStudy_mc.gotoAndPlay("restore");
}

```

when i release this mc(a) it only plays “restore”, as if its not even checking the “if” statement to begin with. what am i doing wrong?

thanks
