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 to check if a literal