Changes

Jump to navigation Jump to search
292 bytes added ,  17:31, 13 July 2020
no edit summary
==Logic==
 
If expressions can often be simplified:
 
<syntaxhighlight lang="xquery">
for $a in ('a', '')
return $a[boolean(if(.) then true() else false())]
 
(: rewritten to :)
for $a in ('a', '')
return $a[boolean(.)]
 
(: rewritten to :)
for $a in ('a', '')
return $a[.]
 
(: rewritten to :)
("a", "")[.]
</syntaxhighlight>
Boolean algebra (and set theory) comes with a set of laws that can all be applied to XQuery expressions.
return $input1[not(. = $input2)]
</syntaxhighlight>
 
==Pre-Evaluation==
=Changelog=
Introduced with Version 9.4.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu