Home Forums General Using Ctrlr Switch Bits Problem Reply To: Switch Bits Problem

#13423
msepsis
msepsis
Participant

Indenting code… when to tab that is the question?

take your first example.. you’d want it to read something more like:

http://pastebin.com/AAF3MFRP

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 🙂

Monstrum Media | Music, Sound & Software Design, Chicago / San Francisco listen