How to do inequality swichcase in Arduino?

Hi, I am doing the Arduino switch case. As you can see below, the one which asked to compare valGSide if it is equal to 5, or not seem to work fine but in the case that I want to compare it to 5, when it is less than, or more than 5, I tried to put >, and < but it seems not working. What should I change in this code. Thank You!

switch (valGSide)
{
  case 5:
  valWL= 9;
  valWR= 9;
  break;
  case < 5:
  valWR =9;
  valWL = 9-(valGSide*2);
  break;
  case > 5:
  valWL =9;
  valWR = 9-(valGSide*2);
  break;
}

Examples of error message:

Receiver_Final:43: error: expected primary-expression before '<' token
Receiver_Final:47: error: expected primary-expression before '>' token

The switch-case is only for fixed numbers.
Anything else should be done with if-else.

The switch-case if often used in a state machine:

switch( state)
{
  case IDLE:
    ...
    break;
  case IGNITION:
    ...
    break;
  case MOTOR_RUNNING:
    ...
    break;
}

You want to test a variable, so you need a if-else.

if( valGSide == 5)
{
  valWL= 9;
  valWR= 9;
}
else if( valGSide < 5)
{
  valWR =9;
  valWL = 9-(valGSide*2);
}
else
{
  // valGSide is above 5
  valWL =9;
  valWR = 9-(valGSide*2);
}

There is not need to check for “if( valGSide > 5)”, since when it it not 5 and not below 5, then it must be above 5.