title: How to test if something is greater than certain number with POSTMAN
body: <p>I'm trying to make a test in POSTMAN where the size has to be greater than 0 but I haven't been able to make the test correctly.</p>
  
  <p>What I did was to make it fail when the size is smaller than 0.</p>
  
  <p>Is there a function in postman to check if the size is greater than x number?</p>
  
  <pre><code>    pm.test("Step 7/ Getting the resources and availabilites list " , function(){
  
      pm.expect(pm.response.code).to.be.oneOf([200]);
      if(pm.response.code === 200){
          var jsonData = JSON.parse(responseBody);
          var sizeOK= 1;
          if(jsonData.resources.length&gt;0){
  
          }else{
              //I will make the test fail if there is not data available on the response.
              pm.test("Response body is empty ", function () {
                  pm.expect(pm.response.json().resources.length).to.equal(1);
              });
  
          }
          console.log(Boolean(jsonData.resources.length&gt;1))
      }
  
  });
  </code></pre>