Re: If 1 IF fails, do the rest anyway...

From: Date: Fri, 14 Mar 2003 01:10:50 +0000
Subject: Re: If 1 IF fails, do the rest anyway...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-139634@lists.php.net to get a copy of this message
Hi, Friday, March 14, 2003, 7:13:15 AM, you wrote: LG> I know that in a case like this LG> if((test1) && (test2) && (test3)) { LG> ... LG> } LG> if test1 fails, dear PHP won't bother doing test2 and 3. Am I correct? Is there a syntax LG> that will make it carry on with test2 and 3 anyway, regardless of how test1 came out? if(!(test1 || test2 || test3)){ echo "Failed"; }else{ echo "Success"; } -- regards, Tom

« previous php.general (#139634) next »