# MX - Quick question on if()else statement

**URL:** <https://forum.kirupa.com/t/mx-quick-question-on-if-else-statement/154768>\
**Category:** flash\
**Created:** [July 12, 2005, 4:37pm UTC](https://forum.kirupa.com/t/mx-quick-question-on-if-else-statement/154768 "2005-07-12T16:37:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_Chef](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@The\_Chef](https://forum.kirupa.com/u/The_Chef)\
**Post date:** [July 12, 2005, 4:37pm UTC](https://forum.kirupa.com/t/mx-quick-question-on-if-else-statement/154768/1 "2005-07-12T16:37:16Z")

</div>

On a button I want it to check the position of one of the mc’s and perform an action otherwise dont. This is what I have:

```auto

if(Main._x > 100){
  returnMain();
  returnContent();
  }
if(Main._x < 100){
  tweenMain();
  tweenContent();
}

```

Can you have to “if” statements back to back like that?  
Or do i add an else statement like:

```auto

if(Main._x > 100){
  returnMain();
  returnContent();
  }
else(){
  tweenMain();
  tweenContent();
  }

```

??Not sure at all cuz neither work.

Thanks!
