title: How to use document.getElementById("elemId").innerHTML basd on a value greater than 0?
body: <p>How to change the page HTML based on a variable value being greater than 0?</p>
  
  <p>I believe that document.getElementById("elemId").innerHTML is the way to go but do not know how to add in the variable part.</p>
  
  <p>I have been trying to find out how you can switch HTML in a page based on a value.  My skills are limited in this area. I'm good at searching for answers online but found nothing this time.</p>
  
  <p><code>##CUSTOMER_CREDITLIMIT#</code>  is a system generated code that returns a client credit amount.  So if they have credit show some HTML else show different HTML.  On the live page it will render 2000 for example</p>
  
  <pre><code> &lt;div id="ecomp"&gt; &lt;!-- HTML rendered here --&gt; &lt;/div&gt;
  
  &lt;script&gt;
  
  var n = ##CUSTOMER_CREDITLIMIT#;
  if ( n &gt; 0) { 
  
  document.getElementById("ecomp").innerHTML = '&lt;h1&gt;CREDIT CLIENT HTML&lt;/h1&gt;'
  } else { 
  document.getElementById("ecomp").innerHTML = '&lt;h1&gt;CASH CLIENT HTML&lt;/h1&gt;'
  
  }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Thanks for looking, awaiting your advice humbly...</p>