# If trouble

**URL:** <https://forum.kirupa.com/t/if-trouble/210909>\
**Category:** flash\
**Created:** [December 23, 2006, 7:30pm UTC](https://forum.kirupa.com/t/if-trouble/210909 "2006-12-23T19:30:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DrSeven7](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@DrSeven7](https://forum.kirupa.com/u/DrSeven7)\
**Post date:** [December 23, 2006, 7:30pm UTC](https://forum.kirupa.com/t/if-trouble/210909/1 "2006-12-23T19:30:25Z")

</div>

How would you write

```auto
if (somevariable == 1 **or** 3) {
       sp._yscale += 10; //any old code, doesn't matter
       sp._x -= 15;
       sp._y -= 5;
       sp._alpha -= 8;
}

```

So far, all I can think of is to just make the if statment twice.

```auto
if (somevariable == 1 ) {
       sp._yscale += 10; //any old code, doesn't matter
       sp._x -= 15;
       sp._y -= 5;
       sp._alpha -= 8;
}
if (somevariable == 3 ) {
        sp._yscale += 10; //any old code, doesn't matter
        sp._x -= 15;
        sp._y -= 5;
        sp._alpha -= 8;
}

```

Peace out
