Difference between revisions of "Rawget"
From GiderosMobile
 (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Gets the real value of table[index], without invoking any metamethod. table must be a table; index may...")  | 
				|||
| Line 4: | Line 4: | ||
Gets the real value of table[index], without invoking any metamethod. table must be a table; index may be any value.  | Gets the real value of table[index], without invoking any metamethod. table must be a table; index may be any value.  | ||
<source lang="lua">  | <source lang="lua">  | ||
| − | (any)  | + | (any) = rawget(table,key)  | 
</source>  | </source>  | ||
| − | '''table  | + | '''table''': (table) table to get value from ''''''<br/>  | 
| − | '''key  | + | '''key''': (any) key value in the table ''''''<br/>  | 
'''Returns''' (any) value from the table<br/>  | '''Returns''' (any) value from the table<br/>  | ||
Revision as of 10:21, 23 August 2018
Available since: Gideros 2011.6
Description
Gets the real value of table[index], without invoking any metamethod. table must be a table; index may be any value.
(any) = rawget(table,key)
'table: (table) table to get value from '
'key: (any) key value in the table '
Returns (any) value from the table