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

empty

empty

The empty function in XQuery is used to determine whether a sequence is empty. It is useful in various conditional checks and scenarios where determining the presence of data is necessary.

Syntax

fn:empty(arg)
The following table describes the argument for this command:
Argument
Required/
Optional
Description
arg
Required
This is the sequence that you want to test for emptiness. It can contain zero or more items.

Return Value

If the value of
$arg
is 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:empty( ('a', 'b', 'c') )
false
fn:empty( () )
true
fn:empty(0)
false
fn:empty((1, 2, 3))
false
fn:empty(("apple", "orange"))
false

0 COMMENTS

We’d like to hear from you!