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
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
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 so
3 matches
Mail list logo