I have two questions:
1) Can I switch a string? For example:
Code:
switch(string)
{
case "whatever": //code
case "whatever 2": //code
}
and
2) Is it possible to combine cases with an & or |? For example:
Code:
case "whatever": // same code as "whatever 2"
case "whatever 2": // same code as "whatever"
case "whatever" | "whatever 2": // code
Any help is greatly appreciated.