title: Incomplete FLWOR expression: expecting 'return'
body: <p>I am having some trouble with the if-then-else command of the XQuery.</p>
  
  <p>Currently I am using BaseX to edit XQuery (if that matters!)</p>
  
  <pre><code>if ($item/pf3:Current/pf3:Name) then (
      let $Name := "None"
  ) else (
      let $Name := data($item/pf3:Current/pf3:Name)
  )
  </code></pre>
  
  <p>This piece throws an error saying: 
  [XPST0003] Incomplete FLWOR expression: expecting 'return'.</p>