?
Solved

Not between statement...

Posted on 2003-03-31
2
Medium Priority
?
212 Views
Last Modified: 2013-12-26
Hi,

Problably my question is very simple but i can't get it right...
I have an integer variable and want to check if it's between 2 numbers...like this:

if interger1 not between 20 and 30 then
   statement1
else
   statement2
end if

what is the correct syntaxis for this statement?!?! I cant figure it out and the powerbuilder help file is also not very helpfull...

thanks,

wbph
0
Comment
Question by:wbph1
2 Comments
 
LVL 6

Accepted Solution

by:
DaniPro earned 150 total points
ID: 8238780
This is the code in PowerBuilder

IF (integer1 < 20) OR (integer1 > 30) THEN
     statement1
ELSE
     statement2
END IF
0
 

Author Comment

by:wbph1
ID: 8238857
yeah that;s it....

thanks...

willem

ps.now I see the answer i feel quite ashamed to have asked it
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

569 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question