HASTAG Function
Determines whether a specified object has a specified tag.
Syntax
HASTAG("ObjectType",<"ObjectID">,"TagID")
Where
ObjectType is "D", "A", "M", or "0"-"9" inclusive, depending if you are checking a document, account, map number, or group number respectively.
ObjectID is an optional argument to specify the document, account, map, or group to check. If this argument is not entered, the current record is used.
TagID is the tag to search for.