Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Understanding Data Types and Field Properties
  3. Designing Processes
  4. Using and Displaying Data
  5. Designing Guides
  6. Designing Process Objects
  7. Designing Service Connectors
  8. Using App Connections
  9. System Services, Listeners and Connectors
  10. Designing Human Tasks

Design

Design

exists

exists

The exists function in XQuery is used to determine whether a sequence contains one or more items.

Syntax

fn:exists(arg)
The following table describes the argument for this command:
Argument
Required/
Optional
Description
arg
Required
The sequence to check for existence. It can be a node, an atomic value, or a sequence of items. It can contain zero or more items.

Return Value

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

Examples

The following table lists some sample values and return values:
SAMPLE FUNCTION
OUTPUT
fn:exists( ('a', 'b', 'c') )
true
fn:exists( '' )
true
fn:exists( () )
false
fn:exists( false() )
true
fn:exists( (1, 2, 3) )
true

0 COMMENTS

We’d like to hear from you!