Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API issecurevariable

Last wiki revision 2023-08-13

Returns true if the specified variable is secure. isSecure, taint = issecurevariable([table,] variable)

  • table: - table to check the the key in; if omitted, defaults to the globals table.
  • variable: - string key to check the taint of. Numbers will be converted to a string; other types will throw an error.
  • isSecure: - true if the key is secure, false if it is tainted.
  • taint: - name of the addon that tainted the table field; an empty string if tainted by a macro; nil if secure.
  • Also returns for keys that have never been used/defined, because nothing has tainted them yet.
  • If, and table has a metatable with , this function will return whether the metatable's is tainted. You must remove the metatable to check whether itself is tainted.
  • Cannot be used to check taint of local variables, or non-string table keys.

Source

https://warcraft.wiki.gg/wiki/API_issecurevariable · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.