Very good. You're paying attention.
-Original Message-
From: "Brett W. McCoy"<[EMAIL PROTECTED]>
To: "Mark Bergeron"<[EMAIL PROTECTED]>
Cc: "David Draley"<[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Date: Tue Sep 18 15:23:22 PDT 2001
Subjec
On Tue, 18 Sep 2001, Mark Bergeron wrote:
> I would go:
>
> unless ( ($x < 50) || ($x > 80) ){
> print "";
> }
No... that will return true for all values less than fifty or all values
more than 80. To get the numbers in between, you want numbers that are
more than 50 AND less than 80, the o
I would go:
unless ( ($x < 50) || ($x > 80) ){
print "";
}
of course you could use and, or
you can only use and, or if your running at least Perl5
-Original Message-
From: "David Draley"<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Mon Sep 17 14:36:06 PDT 2001
Subject: "Unless"
On Mon, 17 Sep 2001, David Draley wrote:
> how would I write an unless statement that is looking for the values
> inbetween two numbers?
>
> unless (50 < $x > 80)
print '' unless( ($x > 50) and ($x < 80) );
-- Brett
http://www.chapelperilous.net/
--