.. _exists: ====== exists ====== Whether an argument is the empty sequence Description ~~~~~~~~~~~ The fn:exists function returns true if the sequence contains one or more items; it is the opposite of the fn:empty function. It is often unnecessary to call the fn:exists function because sequences are automatically converted to the effective boolean value where a boolean value is expected. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - arg:string() - Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - exists( ('a', 'b', 'c') ) - true * - exists( '' ) - true * - exists( () ) - false * - exists( false() ) - true See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`empty`. * :ref:`boolean`.