Y
Hacker News
new
|
ask
|
show
|
jobs
by
alain94040
2691 days ago
The usual way is simply with an else statement, so the reader can follow the logic:
if (cnt > 100) cnt <= 0; else cnt <= cnt + 1;