Returns the value of certain fields in an addon's TOC file
See also Addon-related functions.
index- Index of an addon in the addon list (between 1 and
name- Name of an addon (name of the addon's folder and TOC file, not the Title found in the TOC) (
variable- Name of a header from the addon's TOC file; only certain headers can be queried:
Version, and any header whose name starts with
data- Contents of the given TOC file header, or nil if the header does not exist or cannot be queried (