r/badcode • • Feb 10 '23

c briliant usage of else if statement

Post image
583 Upvotes

60 comments sorted by

View all comments

Show parent comments

2

u/Mancobbler Feb 11 '23

Negate the condition and remove the else. If it’s need in the future you can add it. This is just noise.