switch on string, chars, anything but integer

It isn't possible to use switch on strings, etc? Is it? The thing on switch doesn't mention this but IDE sure does if you try other than integers.

It isn't possible to use switch on strings, etc? Is it? The thing on switch doesn't mention this

https://www.arduino.cc/reference/en/language/structure/control-structure/switchcase/

Syntax
switch (var) {
case label1:
// statements
break;
case label2:
// statements
break;
default:
// statements
}
Parameters
var: a variable whose value to compare with various cases. Allowed data types: int, char
label1, label2: constants. Allowed data types: int, char

The "thing" on switch seems pretty clear on allowed data types.

You could go astray, and generate a unique hash int for all the strings you expect, then switch on that value…

You want to 'switch' on a string, use nested switch statements on successive characters into the array. No different than a command parser.

I’d rather have a bunch of if’s than nesting switches. That makes me go blind. Anyhow it was just a thought. My big problem is trying to take four vars values and place them next to eachother but that’s another thread.