complex condition
From: Steve Gilbert (stevecgilbert_at_yahoo.com)
Date: 10/30/03
- Next message: Dan: "Re: IRC bot in perl?"
- Previous message: Brian Gerard: "Re: What is my name"
- Next in thread: Andrew Gaffney: "Re: complex condition"
- Reply: Andrew Gaffney: "Re: complex condition"
- Maybe reply: Alan Perry: "RE: complex condition"
- Maybe reply: Mark Lobue: "RE: complex condition"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Oct 2003 09:08:26 -0800 (PST) To: beginners@perl.org
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 false
Thanks in advance!
__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
- Next message: Dan: "Re: IRC bot in perl?"
- Previous message: Brian Gerard: "Re: What is my name"
- Next in thread: Andrew Gaffney: "Re: complex condition"
- Reply: Andrew Gaffney: "Re: complex condition"
- Maybe reply: Alan Perry: "RE: complex condition"
- Maybe reply: Mark Lobue: "RE: complex condition"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]