Graeter than or less than

Discussion in 'ASP .Net' started by bbawa1@yahoo.com, Jun 21, 2007.

  1. Guest

    Gretaer than and lessthan syntax doesn't work.

    if(int diff >= 17 AND <=14)
    {
    //
    }
     
    , Jun 21, 2007
    #1
    1. Advertising

  2. Hey,

    wrote:
    > 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
     
    Laurent Bugnion, MVP, Jun 21, 2007
    #2
    1. Advertising

  3. Guest

    On Jun 21, 12:29 pm, "Laurent Bugnion, MVP" <>
    wrote:
    > Hey,
    >
    > wrote:
    > > 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#
     
    , Jun 21, 2007
    #3
  4. There is no AND in C#

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

    George

    <> wrote in message
    news:...
    > On Jun 21, 12:29 pm, "Laurent Bugnion, MVP" <>
    > wrote:
    >> Hey,
    >>
    >> wrote:
    >> > 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#
    >
     
    George Ter-Saakov, Jun 21, 2007
    #4
  5. bruce barker Guest

    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)
    {
    }


    wrote:
    > On Jun 21, 12:29 pm, "Laurent Bugnion, MVP" <>
    > wrote:
    >> Hey,
    >>
    >> wrote:
    >>> 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#
    >
     
    bruce barker, Jun 21, 2007
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. falcon
    Replies:
    10
    Views:
    18,869
    Roedy Green
    Feb 24, 2006
  2. jiajia wu
    Replies:
    0
    Views:
    364
    jiajia wu
    Oct 1, 2009
  3. Dwight Army of Champions
    Replies:
    4
    Views:
    2,807
    John H.
    Mar 17, 2010
  4. 6668
    Replies:
    0
    Views:
    162
  5. lllll
    Replies:
    0
    Views:
    139
    lllll
    Jun 8, 2009
Loading...

Share This Page