- Topics: 217
- Replies: 731
- Total: 948
Indenting code… when to tab that is the question?
take your first example.. you’d want it to read something more like:
basically when you declare an “if” statement, the stuff after “then” should be indented. Then you back-tab when you want to close the “if” statement.. Especially in your example when you have embedded if statements it helps you understand what you’ve wrote and others understand when it comes time to help you out 🙂