table?Optional. Could be nil. - table to check the the key in; if omitted, defaults to the globals table (_G).
string - string key to check the taint of. Numbers will be converted to a string; other types will throw an error.
boolean - true if the table[variable] key is secure, false if it is tainted.
string?Optional. Could be nil. - name of the addon that tainted the table field; an empty string if tainted by a macro; nil if secure.
Also returns true, nil for keys that have never been used/defined, because nothing has tainted them yet.
If table[variable] == nil, and table has a metatable with __index, this function will return whether the metatable's __index[varible] is tainted. You must remove the metatable to check whether table[variable] itself is tainted.
Cannot be used to check taint of local variables, or non-string table keys.
This page was last edited on 17 May 2020, at 18:22.
Content is available under CC BY-SA 3.0 unless otherwise noted. Game content and materials are trademarks and copyrights of their respective publisher and its licensors. All rights reserved.
This site is a part of Fandom, Inc. and is not affiliated with the game publisher.