Changes

Jump to navigation Jump to search
129 bytes added ,  11:24, 10 September 2019
no edit summary
|-
| '''Summary'''
|Returns {{Code|$items}} if it is a non-empty sequence. Otherwise, returns {{Code|$default}}. The function is equivalent to one of the expression following expressions:* <code>if(exists($items)) then $items else $default</code>.* <code>$items ?: $default</code> (see [[XQuery Extensions#Elvis Operator|Elvis Operator]] for more details)
|-
| '''Examples'''
|}
==util:dooddo==
{{Mark|Introduced with Version 9.3:}}
|-
| '''Summary'''
|Returns nodes in ''distinct document-order'': duplicate nodes will be removed, and the remaining nodes will be returned in [https://www.w3.org/TR/xquery-31/#dt-document-order document order]. All results of path expression are in distinct document order, so the function is equivalent to the expression <code>$nodes/self::node()</code>.
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu