Difference between revisions of "Type"
From GiderosMobile
| Line 1: | Line 1: | ||
__NOTOC__  | __NOTOC__  | ||
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>  | '''<translate>Available since</translate>:''' Gideros 2011.6<br/>  | ||
| + | '''<translate>Class</translate>:''' [[Special:MyLanguage/(global)|(global)]]<br/>  | ||
=== <translate>Description</translate> ===  | === <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>  | ||
Revision as of 09:30, 24 August 2018
Available since: Gideros 2011.6
Class: (global)
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