The empty() statement evaluates whether a script variable is empty. If no script object is specified, the statement checks the default script object.
The following example illustrates how the empty statement can be used to determine if a script variable contains any elements:
Main:
IF (!empty($ids))
#process ids
gosub processIds
ENDIF