Re: if statement help

From: Date: Thu, 03 Nov 2005 15:26:16 +0000
Subject: Re: if statement help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-225049@lists.php.net to get a copy of this message
You only need one "if". The parenthesis will evaluation order. if( ( !empty( $var1 ) || ( !empty( $var2 ) && !empty( $var3 ) ) || $var1 == "something" ) On Nov 3, 2005, at 10:13 AM, Jason Gerfen wrote:
I am trying to determine if it is worth my time to attempt a if statement similar to the following. I am asking because I have not found any references to something like this: if( ( !empty( $var1 ) ) || ( if( !empty( $var2 ) ) && ( !empty( $var3 ) ) ) || ( $var1 == "something" ) ) { // do something fancy } --Jason Gerfen "My girlfriend threated to leave me if I went boarding... I will miss her." ~ DIATRIBE aka FBITKK --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577

« previous php.general (#225049) next »