# "Case" Study :)

**URL:** <https://forum.kirupa.com/t/case-study/328868>\
**Category:** flash\
**Created:** [June 26, 2012, 12:01pm UTC](https://forum.kirupa.com/t/case-study/328868 "2012-06-26T12:01:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Almonimus](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@Almonimus](https://forum.kirupa.com/u/Almonimus)\
**Post date:** [June 26, 2012, 12:01pm UTC](https://forum.kirupa.com/t/case-study/328868/1 "2012-06-26T12:01:25Z")

</div>

**The next code doesn’t work, can I make such a clean code?**  
(the “if” solution is ugly)

```auto
switch (Stage.width) {
case (< widthMin)
     ...
break;
case (> widthMax)
     ...
break;
default
     ...
break;
}

```

I’d expect default to be all other options which are:  
widthMin =\< … =\< widthMax
