Difference between revisions of "Type"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Returns the type of its only argument, coded as a string. The possible results of this function are "n...")
 
Line 4: Line 4:
 
Returns the type of its only argument, coded as a string. The possible results of this function are "nil" (a string, not the value nil), "number", "string", "boolean", "table", "function", "thread", and "userdata".
 
Returns the type of its only argument, coded as a string. The possible results of this function are "nil" (a string, not the value nil), "number", "string", "boolean", "table", "function", "thread", and "userdata".
 
<source lang="lua">
 
<source lang="lua">
(string), = type(v,)
+
(string) = type(v)
 
</source>
 
</source>
'''v:''' (any) value to get type from ''''''<br/>
+
'''v''': (any) value to get type from ''''''<br/>
 
'''Returns''' (string) type of the variable<br/>
 
'''Returns''' (string) type of the variable<br/>

Revision as of 11:21, 23 August 2018

Available since: Gideros 2011.6

Description

Returns the type of its only argument, coded as a string. The possible results of this function are "nil" (a string, not the value nil), "number", "string", "boolean", "table", "function", "thread", and "userdata".

(string) = type(v)

'v: (any) value to get type from '
Returns (string) type of the variable