# If..else...wondering matters

**URL:** <https://forum.kirupa.com/t/if-else-wondering-matters/201285>\
**Category:** Uncategorized\
**Created:** [September 20, 2006, 1:46am UTC](https://forum.kirupa.com/t/if-else-wondering-matters/201285 "2006-09-20T01:46:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixeldude](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pixeldude](https://forum.kirupa.com/u/pixeldude)\
**Post date:** [September 20, 2006, 1:46am UTC](https://forum.kirupa.com/t/if-else-wondering-matters/201285/1 "2006-09-20T01:46:59Z")

</div>

Hi everyone…

Okay…just a quick shoot…Okay it’s easy as pie if I want to short this if…else…

```auto

if(some condition){
    do this...
}else{
   do something else...
}

//to simplify it 
((some condition)?do this:do something else);

```

it’s okay with that…but I just wondering how to short this if…else…if it execute more then one action…eg;

```auto

if(some condition){
   do this1
   do this 2
}else{
   do something else1
   do something else2
}

//HOW TO SHORT IT

//just wondering it out..

```

hope anyone can give me some shed on light…

Thanks
