# If statement help

**URL:** https://forum.kirupa.com/t/if-statement-help/269110
**Category:** Uncategorized
**Created:** [August 22, 2008, 7:01pm UTC](https://forum.kirupa.com/t/if-statement-help/269110 "2008-08-22T19:01:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Melchior](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@Melchior](https://forum.kirupa.com/u/Melchior)
#### Post date: [August 22, 2008, 7:01pm UTC](https://forum.kirupa.com/t/if-statement-help/269110/1 "2008-08-22T19:01:25Z")

</div>

Hello again guys,  
I was wondering how I could get an if statement to do the following:  
So I have a mask MC and a content MC. The Mask MC is inside the content MC. The question is, How can I can I get the content MC to change only if the Mask MC is on a certain frame?  
Here is the code I tried to use:

```
menuP.content1.maskA.gotoAndPlay(5);
if(menuP.content1.maskA.frame==8){
	menuP.content1.gotoAndStop("contact");
	}

```

Thanks =)
