Difference between revisions of "Object:isInstanceOf"

From GiderosMobile
Line 12: Line 12:
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
 
'''<translate>Returns</translate>''' (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/>
 +
 +
{{Object}}

Revision as of 22:16, 3 December 2019


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