Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 9th, 2025, 9:50 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Variable in a range
PostPosted: January 18th, 2008, 1:15 pm 
Offline

Joined: September 8th, 2007, 2:05 pm
Posts: 7
Hi, I wanto to check if a variable is betwen a range of numbers... I tried with this code:

if (IMC>=20 AND IMC<=25)
{result="OK"
}


... but it doesnt work.. any one knows the solution?

Thanks a lot.

Louri


Top
 Profile  
 
 Post subject:
PostPosted: January 18th, 2008, 1:24 pm 
Offline

Joined: January 10th, 2005, 11:08 am
Posts: 63
Location: Birmingham, United Kingdom
Opus: All between ver Pro XE 4.5 and Ver 9.62
OS: Windows XP Pro SP3
System: Intel Core2 Duo 2.67Ghz, Matrox Millennium G550 dual head graphics card
the function AND is written as && in this code

_________________
Andy Thompson
Opus Pro XE 4.5, Pro 5.5, Ver 6, Ver 7, Ver 8.6, Ver 9.62
Windows XP Pro on an Intel Core2 Duo 2.67Ghz with a Matrox Millennium G550 LP PCIe dual-head card.


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 18th, 2008, 1:34 pm 
Offline

Joined: September 8th, 2007, 2:05 pm
Posts: 7
Andrew Thompson wrote:
the function AND is written as && in this code


Thanks a lot for the fast answer!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 63 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group