title: Adding Value in variable (If statement)
body: <p>I'm trying to figure this out, I have a counting app and want it to increase by 45. Assume the user clicks + 5 times, they can only subtract it -5 for it to equal 0. </p>
  
  <p>Here is my if statement but it doesn't work, it goes into the negatives. 
  Can anyone help? It's not coming to me. It's the <code>(if count &gt;= 0)</code></p>
  
  <pre><code>-(IBAction)upButton45:(id)sender {
      xCount1 +=1;
      countNumber45 +=45;
      x45Label.text = [NSString stringWithFormat:@"45x%i", xCount1];
      totalWeight += 45;
      TotalWeightLabel.text = [NSString stringWithFormat:@"%d LBS", totalWeight];
  }
  
  
  -(IBAction)downButton45:(id)sender {
      xCount1 -= 1;
      countNumber45 -= 45;
      x45Label.text = [NSString stringWithFormat:@"45x%i", xCount1];
      if (countNumber45 &lt;= 0) {
          countNumber45 = 0;
          xCount1 = 0;
  
          x45Label.text = @"";
      }
      if (xCount1 &gt;= 0) {
          totalWeight -= 45;
          TotalWeightLabel.text = [NSString stringWithFormat:@"%d LBS", totalWeight];
      }
  }
  </code></pre>