+ 1
Should Nested for loops be avoided?
Some times, nested for loops produce desired output. But, it looks odd when nested for and if we're used.
2 Answers
+ 2
You can't really prevent nesting and therefore indentation.
I feel that 5 or 6 levels should be the limit.
If you move further to the right, you should think about restructuring the code somewhat, for example using functions.
+ 2
Thank you HonFu [#GoGetThatBugChamp!]