Y
Hacker News
new
|
ask
|
show
|
jobs
by
SeldomSoup
3908 days ago
With the current code, you would need a counter increment for every if statement.
1 comments
rootlocus
3907 days ago
And with the else-if code you would need a counter increment for every else-if statement
link
SeldomSoup
3907 days 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.
link