Web Analytics Made Easy -
StatCounter if statements - CodingForum

Announcement

Collapse
No announcement yet.

if statements

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • if statements

    How do you say less than or equal to in an if statement. I know:
    if(x==0) says if x equals zero but how do you write x is equal to or less than zero.

  • #2
    <=

    Comment


    • #3
      thanks

      Thanks and does that mean that greater than or equal to is >= or is it => ?

      Comment


      • #4
        it is always the 1st sign that alters

        == equal
        <= less or equal
        >= larger or equal
        != not equal.

        Comment

        Working...
        X