View Single Post
  #96  
Old 04-15-2007, 11:06 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
PHP Code:
function blah()
{
  if (
this.condition)
  {
    if (
this.completelydifferentcondition)
      
blah2();
    else
      
blah3();
  }  

My general stylings. I normally have brackets around all conditions and events but when i'm finished and there is only one statement, I generally remove them.

Like

PHP Code:
function Dosomething()
  return 
this.something.index();

public function 
yay()
  return 
localfunction(); 
Reply With Quote