@recipient::getRecipientCategory

Identifies the category of the recipient: PERSON, GROUP, or DEVICE.

Syntax:

@recipient::getRecipientCategory()

Parameters:

None

Returns:

(String) Recipient type; one of PERSON, DEVICE, or GROUP

Example:

The following example shows how to use the getRecipientCategory method to determine whether a recipient is a Device, and to print the address if it is an email Device:

$category = @recipient::getRecipientCategory()

   if($category=="DEVICE")

      @script::log($recipient.address)

   endif