Are there more efficient if-else statements?

Is there a way to make more efficient if/else statements than looping through every alternative until you find the one you're looking for? This is my current method, but I want to add more buttons, and I don't want it to be laggy:
Continue to help post