jcs:empty() Function

Syntax

$rc = jcs:empty(node-set | string)

Description

Return true if the node set or string argument is empty.

Parameters

Return Value

The following example shows how the jcs:empty() function is used. If the set is empty, the script will execute the code block.

if ( jcs:empty($set) ) {
/* Code to handle true value ($set is empty) */
}