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 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







---------------------------------
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to