Top

Name

empty — Returns true if given argument is an empty sequence, false if it is any single value or nonempty sequence.

Synopsis

boolean empty ( seq any );
 

Description

Returns true if given argument is an empty sequence, false if it is any single value or nonempty sequence.

Parameters

seq

Sequence of values to be checked.

Return Types

Boolean

Errors

This function never returns any errors

Examples

Example 24.583. 

if(empty(//table),'There are no tables in context node','There is at least one table')

See Also

count()