Difference between revisions of "Type"
From GiderosMobile
| Line 2: | Line 2: | ||
'''Available since:''' Gideros 2011.6<br/>  | '''Available since:''' Gideros 2011.6<br/>  | ||
=== Description ===  | === 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".  | + | <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 ===  | === Parameters ===  | ||
| − | '''v''': (any) value to get type from <br/>  | + | '''v''': (any) <translate>value to get type from</translate> <br/>  | 
=== Return values ===  | === Return values ===  | ||
| − | '''Returns''' (string) type of the variable<br/>  | + | '''Returns''' (string) <translate>type of the variable</translate><br/>  | 
Revision as of 13:34, 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)
Parameters
v: (any) value to get type from 
Return values
Returns (string) type of the variable