Type Function Library (globals) Return value (varies) Revision Release 2025.3721 Keywords rawget, rawset, tables See also rawset()
Gets the real value of table[index], without invoking any metamethod. table must be a Table; index may be any Number or String.
rawget( table, index )
Table. Any table.
Number or String. Index into table (that you want to “get” the real value of).
local t = {
sample = "example value",
another = 12345
}
print( rawget( t, "sample" ) )
-- OUTPUT: "example value"