Exists Statement

The exists() statement evaluates whether a script variable or script object exists. If no script object is specified, the statement checks the default script object.

The following example illustrates how the exists statement can be used to construct notification content:

Main:

   IF (exists($event.time))

      $content = $content ^ $event.time

   ENDIF

The following example illustrates how exists can be used to determine whether the “companyadmin” account is present in the system:

@companyadmin = @event::getRecipient("companyadmin")

IF (!EXISTS(@companyadmin))

   @script::log("The companyadmin does not exist.")

ENDIF

Flow Control