switch statement problem

How can I correct the switch/case statement to work fine ??

You can't. A switch statement expects ONE variable as input - a single character, an int, etc. The value in the variable can have a any value. You then provide a case for each value.

        case 'linesensor_left  < kWhiteThreshold':

This is nonsense.

Ditch the switch statement. Use multiple ifs.