On 05/08/15 19:59, Strasser Pablo wrote:
Hi Christian,
Thanks for the answer.
It seem that if there is a call to the doc function it doesn't short-circuit.
Your exemple work, however this one does not: 1 or doc('non_existent')
However this one work: declare %basex:lazy variable $doc:=doc('non_existent'); 1 or $doc
Pablo