title: Javascript: do not display, if 0, null, or NaN
body: <p>I've been looking all over (various forums and tutorials, etc.) and trying to find something that can work. Couple of things first:</p>
  
  <p>• I'm very new to javascript (and all languages really), but learned a little just for this.</p>
  
  <p>• I'm using these javascripts inside validation, calculation and formatting of form fields inside of Adobe Acrobat.</p>
  
  <p>Here's what I'm trying to do: Create a form where users input certain whole numbers into several fields: FieldA, FieldB, FieldC, FieldD, FieldE, FieldF, FieldG, FieldH, FieldI.</p>
  
  <p>Here's how it goes:</p>
  
  <p>• Fields A, B, C, D, F, G - user inputs whole integer.</p>
  
  <p>• FieldE = (FieldD)/3</p>
  
  <p>• FieldH = (FieldG)/(FieldF)</p>
  
  <p>• FieldI = FieldA+FieldB+FieldC+FieldE+FieldH</p>
  
  <p>I'm having trouble with displaying/calculating "0" and "NaN". Instead of dealing with the headache trying to explain to several users what NaN is and why a "0" is there, it's easier to have them not displayed (hidden). On the user end, they won't care if there is no info displayed in any given form field, as long as there aren't a bunch of "0"s or "NaN"s littered throughout the forms. So, the simple solution is: How do I write code to not only detect 0, null, and/or NaN  ... but also ... display nothing in any given form field, in these cases. If there is a whole number (in some cases Math.floor implemented for a very specific purpose), then display it.</p>
  
  <p>So, I'm looking for a solution to:</p>
  
  <p>• Keep a form field empty, when 0, Nan, or null is the case.</p>
  
  <p>• Disregard these things in calculations, when this is the case.</p>
  
  <p>• Any actual whole number interger is the only thing to display (even if it is a negative).</p>
  
  <p>Any suggestions?</p>
  
  <p>UPDATE 6/10/2015:
  This is how I wrote the code.... what am I doing wrong?</p>
  
  <pre><code>{
  If ("FieldE" != null &amp;&amp; !isNaN("FieldE") &amp;&amp;"FieldE" != 0)
      {
      //calculate for FieldE
      }
  else
      {
      // set FieldE = ""
      {
  }
  </code></pre>