title: Assign empty string to javascript variable
body: <p>I get return value as null and assign that value it shows as null in the UI. But I want to check some condition and if it is null, it should not show up anything..
  I tried the below code and it doesn't work</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var companyString;
  if(utils.htmlEncode(item.companyname) == null)
  {
    companyString = '';
  }
  else{
    companyString = utils.htmlEncode(item.companyname);
  }</code></pre>
  </div>
  </div>
  </p>