Is there a better way to check what a variable equales?

Its reading an integer, I just dont want to have a ton of "=="s and branches