How do I compare and switch?