jcs:empty() Function
Syntax
$rc = jcs:empty(node-set | string)
Description
Return true if the node set or string argument is empty.
Parameters
- (node-set | string)—Argument to test for the presence of a value.
Return Value
- $rc—Boolean value that is true is the argument is empty.
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) */
}
Hide Navigation Pane
Show Navigation Pane
Download
SHA1