Difference between revisions of "Rawget"
From GiderosMobile
| m (Text replacement - "<source" to "<syntaxhighlight") | |||
| Line 5: | Line 5: | ||
| === Description === | === Description === | ||
| Gets the real value of table[key], without invoking any metamethod. table must be a table, key may be any value. | Gets the real value of table[key], without invoking any metamethod. table must be a table, key may be any value. | ||
| − | < | + | <syntaxhighlight lang="lua"> | 
| (any) = rawget(table,key) | (any) = rawget(table,key) | ||
| </source> | </source> | ||
Revision as of 14:30, 13 July 2023
Available since: Gideros 2011.6
Class: (global)
Description
Gets the real value of table[key], without invoking any metamethod. table must be a table, key may be any value. <syntaxhighlight lang="lua"> (any) = rawget(table,key) </source>
Parameters
table: (table) table to get value from
key: (any) key value in the table
Return values
Returns (any) value from the table
