If statement, first condition's value is within range of second conditional but it returns first conditional

So, I have this project where I’m creating QA sampling calculator using C=0 sampling plan.
The issue is, whenever I input any number and try it, the result I’m provided corresponds to that of a different range.

 const sample = parseFloat(this.sampleSize)
 const lot = parseFloat(this.lotSize)
 if (aqlSelector.value == 0.010) {
 if (this.sampleSize > 0 || this.sampleSize <= 1200)
    {lotQty.innerText = 'All'
      console.log(sample)
      console.log(lot)
     } else if (this.sampleSize >= 1201) 
             {lotQty.innerText = '1250'};
     } 

Here’s the pen if you want to take a look at the full code https://codepen.io/cesar-higashi/pen/LYbPwaJ

180 thoughts on “If statement, first condition's value is within range of second conditional but it returns first conditional”

  1. Pingback: stromectol e coli
  2. Pingback: propecia study
  3. Pingback: stromectol 12mg

Leave a Comment