X
XirmiX
Guest
Cases in switch statements need to be a number, be it 0, positive or a negative number, or it can be set to default... The "noone" declaration, refers to a null or empty variable. If I used a switch statement, could I have a case for if it is unset? It could allow me for some pretty efficiently-clever coding, if I can.
EDIT: I could probably test this easily to see if this works for me, but since I've a lot of other code to work with just to get certain type of feature in, I have a lot of things to keep track of and I'm bound to get a lot of errors from elsewhere, so it's best to know before I wrap my code around this. Plus, this thread may be useful to others.
EDIT: I could probably test this easily to see if this works for me, but since I've a lot of other code to work with just to get certain type of feature in, I have a lot of things to keep track of and I'm bound to get a lot of errors from elsewhere, so it's best to know before I wrap my code around this. Plus, this thread may be useful to others.