Graeter than or less than

  • Thread starter Thread starter bbawa1
  • Start date Start date
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
 
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#
 
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#
 
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#
 
Back
Top