I think that you can use the key-words 'switch' instead of 'if-else'.