# Conditional statement

**URL:** https://forum.kirupa.com/t/conditional-statement/290940
**Category:** Uncategorized
**Created:** [June 22, 2009, 2:47pm UTC](https://forum.kirupa.com/t/conditional-statement/290940 "2009-06-22T14:47:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![drakkonblade](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@drakkonblade](https://forum.kirupa.com/u/drakkonblade)
#### Post date: [June 22, 2009, 2:47pm UTC](https://forum.kirupa.com/t/conditional-statement/290940/1 "2009-06-22T14:47:26Z")

</div>

i setup this conditional statement.  
my intention was that if the object  
foot\_mc was on point0\_mc then it will go to frame 5

OR

if foot\_mc was on point1\_mc it will go to frame 10…

> function Oncheck(evt:MouseEvent):void  
> {  
> if(foot\_mc == point0\_mc) return;  
> {  
> gotoAndStop(5);  
> }  
> if(foot\_mc == point1\_mc) return;  
> {  
> gotoAndStop(10);  
> }  
> if(foot\_mc == point2\_mc) return;  
> {  
> gotoAndStop(15);  
> }  
> }

i get NO errors but it will always go to frame 15… instead i want it to go to the selective frames depending on where foot\_mc is…

Thank you
