Re: Wrapping long if statements

From: Date: Mon, 15 Nov 2004 10:10:17 +0000
Subject: Re: Wrapping long if statements
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34392@lists.php.net to get a copy of this message
Hi,
I think if you wrap it to something like this it makes it a lot less readable since the indention of the conditions are the same as the statements to within the if-statement, i.e.: if (($a == 0) and ($b == 0) and ($c == 0) and
    ($d == 0) and ($e == 0)) {
    // do something
}
I usualy add one indentation to the conditions, like in the folowing: if (($a == 0) and ($b == 0) and ($c == 0) and
        ($d == 0) and ($e == 0)) {
    // do something
} -Nicolas -- Nicolas "Brush" HOIZEY Clever Age : http://www.clever-age.com/ Gastero Prod : http://www.gasteroprod.com/ phpMyChat : http://phpmychat.sf.net/

« previous php.pear.dev (#34392) next »