> -----Original Message----- > From: Steve Gilbert [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 30, 2003 9:08 AM > To: [EMAIL PROTECTED] > Subject: complex condition > > > I know there must be a way to do the following: > > if (($foobar > 3) || ($foo="t" && $bar = "b")) {print > "yup"} > > Of course this is wrong, but what I want is to print > yup if $foobar >3 or $foo=t and $bar=b. > > so: > $foobar=4 $foo=a $bar=b is true > $foobar=1 $foo=f $bar=b is true
Barring your problem of using = instead of eq, how is this one true? $foo has to be "t" and $bar has to be "b" OR $foobar has to be greater than 3 (it is 1). Both sides of that OR are false. -Mark -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]