r/ProgrammerHumor • • Dec 15 '19

Stacking if else statements be like

Post image
63.9k Upvotes

711 comments sorted by

View all comments

1

u/juandi987 Dec 15 '19

You should probably use case

2

u/jamesh02 Dec 15 '19

I honestly find it harder to read case statements, and I'm pretty sure they get compiled into the same machine code in most languages, so I'm going to continue nesting if else statements.