The only way to do what you wanna do without having heaps of code is to do the following:
PHP Code:
switch ($magic) {
loooong thing
}
The logic of it is that if if comes to case 15, and doesn't come to a break before the end of case 20 then it will apply the $special = 1 for all cases up to 20 - you will have to enter each case but not define the value for each one.