>> I know there must be a way to do the following:
>>
>> if (($foobar > 3) || ($foo="t" && $bar = "b"))
{print
>> "yup"}
>if (($foobar > 3) || ($foo eq "t" && $bar eq "b"))
{print "yup"}
>
>Your problem is that a single '=' is assignment, not
>equality. '==' could also be used
>instead of 'eq'.
> -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=
Perry, Alan wrote:
Andrew Gaffney wrote:
Steve Gilbert wrote:
I know there must be a way to do the following:
if (($foobar > 3) || ($foo="t" && $bar = "b")) {print
"yup"}
if (($foobar > 3) || ($foo eq "t" && $bar eq "b")) {print "yup"}
Your problem is that a single '=' is assignment, not equali
Andrew Gaffney wrote:
>
>Steve Gilbert wrote:
>> I know there must be a way to do the following:
>>
>> if (($foobar > 3) || ($foo="t" && $bar = "b")) {print
>> "yup"}
>
>if (($foobar > 3) || ($foo eq "t" && $bar eq "b")) {print "yup"}
>
>Your problem is that a single '=' is assignment, not equalit
Steve Gilbert wrote:
I know there must be a way to do the following:
if (($foobar > 3) || ($foo="t" && $bar = "b")) {print
"yup"}
if (($foobar > 3) || ($foo eq "t" && $bar eq "b")) {print "yup"}
Your problem is that a single '=' is assignment, not equality. '==' could also be used
instead of 'eq
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
$foobar=1 $foo=f $bar=a is