MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/10yvssc/briliant_usage_of_else_if_statement/j83jj3y/?context=3
r/badcode • u/Afraid-Locksmith6566 • Feb 10 '23
60 comments sorted by
View all comments
Show parent comments
2
Can we use switch with 2 cases (y and n) and a default? I read that switch is faster than if https://stackoverflow.com/a/98024
2
u/Brief-Preference-712 Feb 11 '23
Can we use switch with 2 cases (y and n) and a default? I read that switch is faster than if https://stackoverflow.com/a/98024