I agree with pararealist to a point, but I also agree with Michael. My general code is:

Code:
function blahblah()
{
     if (blah >= blahblah)
     {
          //insert alot of code
     }
}



but, if it can be a one-liner, I go this way:

Code:
function exit_() { while(key_any) { wait(1); ) exit; }



I generally don't put alot of ifs as one liners, but whiles i do and functions i do. It's just a pet peeve. I just go for organization...I can't stand out of place code and brackets that are put right after the function name. There's nothing wrong with people who do it that way, but I don't and I think it looks tacky....

edit: I also normally use a Tab indention, I don't like a 5 space like i have in my examples.

edit: yes evilSOB....that's a reaaaaaaaly bad habit.....

Last edited by mpdeveloper_B; 07/27/09 16:11.

- aka Manslayer101