Use switch instead of if. No functionality change.