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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to