title: if/elseif error with Google Apps Script
body: <p>I have an error while coding in google sheets.</p>
  
  <p>It doesn't want to multiply the numbers, just displays them as floats without the suffix.
  This is my code:</p>
  
  <pre><code>    function nordicImport(a){
      var b = a;
      var c = b.substring(0,b.length-1);
  
  if(b.contains == "M"){
      var c = parseFloat(b);
      var d = c * 1000000;
      return d;
  }else if(b.contains == "K"){
      var c = parseFloat(b);
      var d = c * 1000;
      return d;
  }else{
      var c = parseFloat(b);
      return c;
  }
  
  }
  </code></pre>