RE: [PHP-GENERAL] if(($var && $var < $othervar) || (statement lik e first) || ( other statement))

From: Date: Thu, 15 Jun 2000 19:29:30 +0000
Subject: RE: [PHP-GENERAL] if(($var && $var < $othervar) || (statement lik e first) || ( other statement))
Groups: php.general 
Request: Send a blank email to php-general+get-1992@lists.php.net to get a copy of this message
> Q. > 1. I know what the && is for from the maual. both $a and $b > are true result is > true. But what does if ($a && $a) do. It must be different It overrides the precedence of the operators. For example, these two mean very different things: 1. (A && B) || C 2. A && (B || C) > because this script > I am trying to find a problem with absolutely will do nothing > without it. > > 2. Is the pipe " || " an or, and, continue, or what? or

« previous php.general (#1992) next »