Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
rootlocus
· 11y ago · 0 comments
And with the else-if code you would need a counter increment for every else-if statement
Comments
[–]
SeldomSoup
11y ago
No, you'd just need one increment after all of them. An increment in every else-if block is redundant because only one condition can be executed per loop.