The next code doesn’t work, can I make such a clean code?
(the “if” solution is ugly)
switch (Stage.width) {
case (< widthMin)
...
break;
case (> widthMax)
...
break;
default
...
break;
}
I’d expect default to be all other options which are:
widthMin =< … =< widthMax