title: Another Javascript undefined error
body: <p>Another undefined error that I cant seem to get my head around. 
  When I run the code my results include a undefined line:</p>
  
  <pre><code>No fault 06:44:46
  Pkey 1 undefined 06:44:44
  Pkey 1 Left 06:44:37
  No fault Feb 09 12:28
  Pkey 1 undefined Feb 09 12:28
  Pkey 1 Right Feb 09 12:28 
  </code></pre>
  
  <p>Please could someone point me in the right direction. Thanks</p>
  
  <pre><code>var a=p1.value;
  var le=p9.value;
  var re=p10.value;
  if (le==true) {
              var x = " Left";
  }
  else if (re==true) {
              var x = " Right";
  
  if (a&gt;0) {
              var y = "Pkey"; 
              var result = y +" "+ a +" "+ x;
  }
  else if (a==0) {
              var result = "No fault"
  return result;
  </code></pre>