Graeter than or less than

L

Laurent Bugnion, MVP

Hey,

Gretaer than and lessthan syntax doesn't work.

if(int diff >= 17 AND <=14)
{
//
}

Is that a joke or are you serious?

In doubt... how can any number be greater than 17 and at the same time
smaller than 14?

Besides, what language is that? There are enough of them, don't try to
invent new ones ;-)

Laurent
 
B

bbawa1

Hey,

Gretaer than and lessthan syntax doesn't work.
if(int diff >= 17 AND <=14)
{
//
}

Is that a joke or are you serious?

In doubt... how can any number be greater than 17 and at the same time
smaller than 14?

Besides, what language is that? There are enough of them, don't try to
invent new ones ;-)

Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog:http://www.galasoft.ch
PhotoAlbum:http://www.galasoft.ch/pictures
Support children in Calcutta:http://www.calcutta-espoir.ch

Sorry I mean >=14 AND <=17 in C#
 
G

George Ter-Saakov

There is no AND in C#

if (( dif <= 17) && ( dif >=14) )
{
.......
}

George

Hey,

Gretaer than and lessthan syntax doesn't work.
if(int diff >= 17 AND <=14)
{
//
}

Is that a joke or are you serious?

In doubt... how can any number be greater than 17 and at the same time
smaller than 14?

Besides, what language is that? There are enough of them, don't try to
invent new ones ;-)

Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog:http://www.galasoft.ch
PhotoAlbum:http://www.galasoft.ch/pictures
Support children in Calcutta:http://www.calcutta-espoir.ch

Sorry I mean >=14 AND <=17 in C#
 
B

bruce barker

you have so many errors. there is no "AND" in c#, you define an int the
if, but don't set a value.

try:

if (diff >= 14 && diff <=17)
{
}


Hey,

Gretaer than and lessthan syntax doesn't work.
if(int diff >= 17 AND <=14)
{
//
}
Is that a joke or are you serious?

In doubt... how can any number be greater than 17 and at the same time
smaller than 14?

Besides, what language is that? There are enough of them, don't try to
invent new ones ;-)

Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog:http://www.galasoft.ch
PhotoAlbum:http://www.galasoft.ch/pictures
Support children in Calcutta:http://www.calcutta-espoir.ch

Sorry I mean >=14 AND <=17 in C#
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top