Impossible. items casemust be VALUES . You have expressions, which means that the expressions are evaluated, and the result of this expression is compared with the value in switch(). This means that you have effectively received
switch(...) {
case TRUE: ...
case TRUE: ...
}
You cannot use multiple values in the case. However, you can use the "failure of support":
switch(...) {
case 'one':
case 'two':
return 'one or two';
case 'three':
case 'four':
return 'three or four';
}