How would I create a switch statement that would have cases such as 'x < r' or something like that if x is the switch parameter?

Something like-
Code:
char x=10;
switch(x)
{
        case > 1: cout << "x is greater than 1"; break;
        case < 1: cout << "x is less than 1"; break;
        default: cout << "Other..."; break;
}
?