Re: If statement w/ multiple conditions

From: Date: Tue, 26 Nov 2002 17:10:51 +0000
Subject: Re: If statement w/ multiple conditions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-126131@lists.php.net to get a copy of this message
At 16:45 26.11.2002, Chris Shiflett spoke out and said: --------------------[snip]-------------------- >--- Ernest E Vogelsinger <ernest@vogelsinger.at> wrote: > >> At 13:50 26.11.2002, ed@home.homes2see.com said: >> >if ($lineone && $linetwo && $linethree && $linefour = >> >"") >> >> Your expression yields true if 1-3 are not-empty AND four is an >> empty string. > >Actually, this expression yields true when $lineone, $linetwo, and >$linethree are all true. The variable $linefour is just being set to >the empty string. You're so right - I think I need new glasses... Thanks for setting this straight :) -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#126131) next »