title: What is the XQuery equivalent of the ESQL COALESCE function?
body: <p>I'm trying convert WMB 7 mapping nodes to IIB 9 nodes. The auto-convert process turns some ESQL functions to XQuery functions.</p>
  
  <p>Specifically, it turns the ESQL function </p>
  
  <pre><code>COALESCE (var0, var1) 
  </code></pre>
  
  <p>(which returns the first non-null value, as in <code>if var0 = null then var1 else var0</code>) into </p>
  
  <pre><code>XQUERY (var0,var1)
  </code></pre>
  
  <ol>
  <li><p>Is it a correct conversion?</p></li>
  <li><p>If it is, can someone provide a link to API? I couldn't find this on XQuery syntax and operators manuals.</p></li>
  </ol>