Difference between revisions of "Rawget"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[(global)]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/(global)|(global)]]<br/>
 
  
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Gets the real value of table[index], without invoking any metamethod. table must be a table; index may be any value.</translate>
+
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(table,key)
 
(any) = rawget(table,key)
</source>
+
</syntaxhighlight>
  
=== <translate>Parameters</translate> ===
+
=== Parameters ===
'''table''': (table) <translate>table to get value from</translate> <br/>
+
'''table''': (table) table to get value from<br/>
'''key''': (any) <translate>key value in the table</translate> <br/>
+
'''key''': (any) key value in the table<br/>
  
=== <translate>Return values</translate> ===
+
=== Return values ===
'''<translate>Returns</translate>''' (any) <translate>value from the table</translate><br/>
+
'''Returns''' (any) value from the table<br/>
  
 
{{(global)}}
 
{{(global)}}

Latest revision as of 15:32, 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.

(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