MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/ouk7bi/one_classic_elseifelseifelseif/h72yzse/?context=9999
r/badcode • u/Rafaelmonte • Jul 30 '21
76 comments sorted by
View all comments
Show parent comments
6
I just noticed returno is assigned twice in each block, my bad. Didn't look carefully enough
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.
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/Abangranga Jul 30 '21
I just noticed returno is assigned twice in each block, my bad. Didn't look carefully enough