Difference between revisions of "Object:isInstanceOf"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2015.08<br/>
+
'''<translate>Available since</translate>:''' Gideros 2015.08<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate>Returns true if instance is of provided class name or if it inherits from provided class name</translate>
 
<translate>Returns true if instance is of provided class name or if it inherits from provided class name</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(boolean) = Object:isInstanceOf(classname)
 
(boolean) = Object:isInstanceOf(classname)
 
</source>
 
</source>
=== Parameters ===
+
=== <translate>Parameters</translate> ===
 
'''classname''': (string) <translate>The name of the class to check relation to</translate> <br/>
 
'''classname''': (string) <translate>The name of the class to check relation to</translate> <br/>
=== Return values ===
+
=== <translate>Return values</translate> ===
'''Returns''' (boolean) <translate>true if instance belongs or inherits from class, false otherwise</translate><br/>
+
'''<translate>Returns</translate>''' (boolean) <translate>true if instance belongs or inherits from class, false otherwise</translate><br/>

Revision as of 07:27, 24 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)

Parameters

classname: (string) The name of the class to check relation to

Return values

Returns (boolean) true if instance belongs or inherits from class, false otherwise