RE: [PHP] if statement help

2005-11-04 Thread Ford, Mike
On 03 November 2005 15:26, Brent Baisley wrote: > You only need one "if". The parenthesis will evaluation order. > > if( ( !empty( $var1 ) || ( !empty( $var2 ) && !empty( $var3 ) ) || > $var1 == "something" ) However, the $var1=="something" test is redundant in this, since if that is true th

Re: [PHP] if statement help

2005-11-03 Thread Brent Baisley
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 t