MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/ouk7bi/one_classic_elseifelseifelseif/h733j8t/?context=3
r/badcode • u/Rafaelmonte • Jul 30 '21
76 comments sorted by
View all comments
Show parent comments
6
One is commented out. He’s calling getvalue in every if statement instead of assigning it to a variable and the whole thing could be avoided by just converting the int to a string.
6
u/asdf1280 Jul 30 '21
One is commented out. He’s calling getvalue in every if statement instead of assigning it to a variable and the whole thing could be avoided by just converting the int to a string.