On Tuesday, May 14, 2002, at 02:35 , Jaishree Rangaraj wrote:
[..]
> I have to check if a literal is within a partiocular range say [1..10].
the first thing you will need to check is that it is numeric
then you can check that it is in range.
> How do I do this. Can I use "eq" operator to check
You could always try something like this:
if($var >= 1 && $var <= 10){
do something...
}
-Original Message-
From: Jaishree Rangaraj [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 2:36 PM
To: [EMAIL PROTECTED]
Subject: beginner, please help
Hi
I have
Hi
I have to check if a literal is within a partiocular range say [1..10].
How do I do this. Can I use "eq" operator to check if it is in a particular range
for eg.
if ($s_field eq [1..10]) {
stmt 1; or how do i use this. Please help. please don't laugh at my program.
}
Thanks,
jessie