in reply to logical AND "&&"
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) && ($b < 2)) && (($d < 4) && ($e >= 6)) ){ do somethin +g ...
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 |