Object:isInstanceOf: Difference between revisions

From GiderosMobile
Created page with "__NOTOC__ '''Available since:''' Gideros 2015.08<br/> === Description === Returns true if instance is of provided class name or if it inherits from provided class name <source..."
 
No edit summary
Line 4: Line 4:
Returns true if instance is of provided class name or if it inherits from provided class name
Returns true if instance is of provided class name or if it inherits from provided class name
<source lang="lua">
<source lang="lua">
(boolean), = Object:isInstanceOf(classname,)
(boolean) = Object:isInstanceOf(classname)
</source>
</source>
'''classname:''' (string) The name of the class to check relation to ''''''<br/>
'''classname''': (string) The name of the class to check relation to ''''''<br/>
'''Returns''' (boolean) true if instance belongs or inherits from class, false otherwise<br/>
'''Returns''' (boolean) true if instance belongs or inherits from class, false otherwise<br/>

Revision as of 09:19, 23 August 2018

Available since: Gideros 2015.08

Description

Returns true if instance is of provided class name or if it inherits from provided class name

(boolean) = Object:isInstanceOf(classname)

'classname: (string) The name of the class to check relation to '
Returns (boolean) true if instance belongs or inherits from class, false otherwise