Changes

Jump to navigation Jump to search
5 bytes removed ,  13:40, 20 August 2018
==basex:lazy==
{{Code|%basex:lazy}} enforces the lazy evaluation of a global variable. An example:
'''Example:'''
<pre class="brush:xquery">
declare %basex:lazy variable $january := doc('does-not-exist');
if(month-from-date(current-date()) == 1) then $january else ()
</pre>
The annotation ensures that an error will only be thrown raised if the condition yields true. Without the annotation, the error will always be raised, because the referenced document is not found.
=Functions=
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu