Difference between revisions of "Object:isInstanceOf"

From GiderosMobile
(language)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2015.08<br/>
'''<translate>Available since</translate>:''' Gideros 2015.08<br/>
+
'''Class:''' [[Object]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Object|Object]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Returns true if instance is of provided class name or if it inherits from provided class name</translate>
+
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>
=== <translate>Parameters</translate> ===
+
 
'''classname''': (string) <translate>The name of the class to check relation to</translate> <br/>
+
=== Parameters ===
=== <translate>Return values</translate> ===
+
'''classname''': (string) the name of the class to check relation to <br/>
'''<translate>Returns</translate>''' (boolean) <translate>true if instance belongs or inherits from class, false otherwise</translate><br/>
+
 
 +
=== Return values ===
 +
'''Returns''' (boolean) true if instance belongs or inherits from class, false otherwise<br/>
  
 
{{Object}}
 
{{Object}}

Revision as of 06:24, 12 January 2022

Available since: Gideros 2015.08
Class: Object

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