Difference between revisions of "Object:isInstanceOf"
From GiderosMobile
(language) |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
Line 5: | Line 5: | ||
=== Description === | === Description === | ||
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. | ||
− | < | + | <syntaxhighlight lang="lua"> |
(boolean) = Object:isInstanceOf(classname) | (boolean) = Object:isInstanceOf(classname) | ||
</source> | </source> |
Revision as of 14:30, 13 July 2023
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. <syntaxhighlight lang="lua"> (boolean) = Object:isInstanceOf(classname) </source>
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