in reply to logical AND "&&"

Yes, you can. If you can't remember Operator Precedence and Associativity, then just add more parentheses so that there is no doubt.
if ( (($a == 1) && ($b < 2)) && (($d < 4) && ($e >= 6)) ){ do somethin +g ...
The and operator can also be used in place of &&. and has lower precedence, but the following is the same as the above:
if ( (($a == 1) and ($b < 2)) and (($d < 4) and ($e >= 6)) ){ do somet +hing ...

Replies are listed 'Best First'.
Re^2: logical AND "&&"
by odegbon (Initiate) on Jan 31, 2010 at 02:13 UTC
    Thanks, Toolic