title: Nested If issue in XQuery
body: <p>I want to write following nested if conditions in XQuery,</p>
  
  <pre><code>if(condition-1)  {
      if(nested-condition-11)  {
        ....
      }
      if(nested-condition-12)  {
        ....
      }
  } 
  else if(condition-2)  {
      if(nested-condition-21)  {
        ....
      }
      if(nested-condition-22)  {
        ....
      }    
  }
  else if(condition-3)  {
      if(nested-condition-31)  {
        ....
      }
      if(nested-condition-32)  {
        ....
      }
  }
  else {        
  }
  </code></pre>
  
  <p>I have tried following code with XQuery,</p>
  
  <pre><code>if (condition-1) then
      if(nested-condition-11) then
          ... 
      else ()     
      if(nested-condition-12) then
          ...
      else ()
  else if (condition-2) then
      if(nested-condition-21) then
          ...
      else ()
      if(nested-condition-22) then
          ...
      else ()
  else if (condition-3) then
      if(nested-condition-31) then
          ...
      else () 
      if(nested-condition-32) then
          ...
      else ()
  else()  
  </code></pre>
  
  <p>But this isn't working. It's throwing following error,</p>
  
  <blockquote>
    <p><strong>Multiple markers at this line - line 310, column 9: Invalid expression: unexpected token: if - 2 changed lines</strong></p>
  </blockquote>
  
  <p>Kindly share some pointers on this. Thanks.</p>