well you could always try it and see if it works, I'm a little bit rusty at the whole server-sided coding thing, but it looks like it should work.
I recall an add-on that did this with nodes, and it used the "case" thing so I'll go dig that up and tell you what I find ..
I had to dig up FFC. ew.
anyways here's a snippet from FFC using a switch to handle text input
switch$(%Color)
{
case "":%Player.mountimage(DogImage,1);
case "red":%Player.mountimage(DogRedImage,1);
case "blue":%Player.mountimage(DogBlueImage,1);
case "pink":%Player.mountimage(DogPinkImage,1);
case "green":%Player.mountimage(DogGreenImage,1);
case "black":%Player.mountimage(DogBlackImage,1);
case "white":%Player.mountimage(DogWhiteImage,1);
case "yellow":%Player.mountimage(DogYellowImage,1);
case "orange":%Player.mountimage(DogOrangeImage,1);
case "purple":%Player.mountimage(DogPurpleImage,1);
}
so yes you can use case with non-numerical values