Arbortext Command Language > Functions by Alphabetical Listing > tag_exists
  
tag_exists
tag_exists (tagname[, doc])
This function returns 1 (True) if the tag named tagname is a valid tag name (including user-defined tags) in the current document (regardless of whether the tag is currently in use). If the tag name is not valid, 0 is returned.
* 
If you have applied an alias map to the document, tagname can be either an alias or a real name.
The doc argument specifies the identifier of the document tree. If doc is omitted or 0, the current document is used.
* 
If the document type definition for your document instance includes the NAMECASE GENERAL NO setting, then the tagname parameter will be case sensitive.