OK, I have a 'short int' that contains several bits of data about a player on my server, such as his login state, whether he is banned, or if the player is an immortal. Rather than using a load of 'if' checks, I want to try to use a switch statement, but don't know if it will work. Here's an example (not fromt he actual code, but same thing).
short int Flags;
Flags = FLAG_LOGIN;
Flags += FLAG_IMMORTAL;
//Does login bs
SendToPlayer(socket, "You're a god!
Is it possible to do this, or should I use the 'if' checks?