Javascript weird if else not working
<p>Anyone knows why showToast always pops up even if desiredquantity is greater than inventoryCount?</p>

<pre><code>  function checkavailable(){
  var desiredquantity = document.getElementById("bin-Qty").value;
  var inventoryCount = document.getElementById("bin-binItem-quantity").value;
  var itemName = document.getElementById("bin-binItem").value;
  if(desiredquantity &gt; inventoryCount)
  {
    console.log(desiredquantity);
    showToast('There are only ' +inventoryCount +' '+itemName+' left');
  }
  else
  {
    addToTransfer();
  }
}
</code></pre>

<p>I have a button to that calls checkavailable</p>

<pre><code>&lt;button type="button"
   onclick ="checkavailable();"&gt;
&lt;/button&gt;
</code></pre>