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...")
 
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 +
'''Class:''' [[(global)]]<br/>
 +
 
=== Description ===
 
=== Description ===
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[key], without invoking any metamethod. table must be a table, key may be any value.
<source lang="lua">
+
<syntaxhighlight lang="lua">
(any), = rawget(tablekey,)
+
(any) = rawget(table,key)
</source>
+
</syntaxhighlight>
'''table:''' (table) table to get value from ''''''<br/>
+
 
'''key:''' (any) key value in the table ''''''<br/>
+
=== Parameters ===
 +
'''table''': (table) table to get value from<br/>
 +
'''key''': (any) key value in the table<br/>
 +
 
 +
=== Return values ===
 
'''Returns''' (any) value from the table<br/>
 
'''Returns''' (any) value from the table<br/>
 +
 +
=== See also ===
 +
'''https://luau.org/library#global-functions'''<br/>
 +
 +
{{(global)}}

Latest revision as of 12:23, 21 July 2025

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.

(any) = rawget(table,key)

Parameters

table: (table) table to get value from
key: (any) key value in the table

Return values

Returns (any) value from the table

See also

https://luau.org/library#global-functions