Loading TOC...

fn.exists

fn.exists(
   $arg as Sequence
) as Boolean

Summary

If the value of $arg is not the empty sequence, the function returns true; otherwise, the function returns false.

Parameters
$arg A sequence to test. If you pass in a single value, it is treated as a Sequence with that single item; therefore, if you pass in an array, the array is treated as a single value (not as one value for each item in the array). If you mean to pass in the values of each item in the array, then you can call xdmp.arrayValues on the array.

Example

fn.exists(fn.remove(xdmp.arrayValues(["hello"]), 1));

=> false

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy