Is there a way to use a switch case with LinearColor or a Vector?

My question is pretty simple and perfectly matches with the title: is there a way to use a switch case with a LinearColor or a Vector?
I want to set some other Material to a StaticMesh depending on the initial Material’s color…