title: Adobe LiveCycle ES2 JavaScript if-else, else not working
body: <p>I have been trying for a few days, to get a simple <code>if/else</code> script to work. 
  The issue I am having is when I check syntax, it says:</p>
  
  <blockquote>
    <p>error illegal use if reserved word else</p>
  </blockquote>
  
  <p>The script I am using is:</p>
  
  <pre><code>if (aira.delsec.presence = "hidden")
  airb.tblair._Row1.addInstance(1)
  airb.presence = "visible"
  aira.delsec.presence = "visible";
  else
  airb.tblair._Row1.addInstance(1)
  </code></pre>
  
  <p>Also, I have tried:</p>
  
  <pre><code>if (aira.delsec.presence = "hidden");{ 
  airb.tblair._Row1.addInstance(1)
  airb.presence = "visible"
  aira.delsec.presence = "visible";
  } else
  {
  aira.delsec.presence = "visible";
  }
  </code></pre>
  
  <p>If I remove the <code>else</code> then the <code>if</code> statement works fine. I am really pulling out my hair and any help would be greatly appreciated.</p>