Type: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
=== Description ===
=== <translate>Description</translate> ===
<translate>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".</translate>
<translate>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".</translate>
<source lang="lua">
<source lang="lua">
(string) = type(v)
(string) = type(v)
</source>
</source>
=== Parameters ===
=== <translate>Parameters</translate> ===
'''v''': (any) <translate>value to get type from</translate> <br/>
'''v''': (any) <translate>value to get type from</translate> <br/>
=== Return values ===
=== <translate>Return values</translate> ===
'''Returns''' (string) <translate>type of the variable</translate><br/>
'''<translate>Returns</translate>''' (string) <translate>type of the variable</translate><br/>

Revision as of 06:28, 24 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)

Parameters

v: (any) value to get type from

Return values

Returns (string) type of the variable