Hi Pablo,
Should code of this type depending on the short-circuit evaluation of the and operator evaluate correctly?
Yes, it does. Here is a mini example (it would raise an error otherwise):
1 or error()
Hope this helps, Christian
declare variable
$version:=1; declare variable $outputdb:='test'; declare variable $outputpath:='test'; db:exists($outputdb,$outputpath) and doc(concat($outputdb,'/',$outputpath))/node()/@version = $version
If the file test/test doesn't exist and receive an error even if the evaluation of the condition is possible. If this is normal does it exist a way to write this type of code without use of if?
Pablo Strasser