Arbortext Command Language > Functions by Alphabetical Listing > macro_exists
  
macro_exists
macro_exists (name[, doc])
This function returns 1 (True) if the macro specified by name is defined in the scope specified by the document doc. If doc is omitted or 0, the current document is used. Predefined commands and aliases are not recognized as macros in this context.
doc — The identifier of the document tree.
This function also returns 1 if no arguments are supplied and one or more macros are defined.
Related Topics
macro_record built-in function
cmd_exists built-in function