Returns whether a specified object is an instance of another given object.
Syntax
instanceOf( object1 , object2 )
object1.instanceOf( object2 )
Parameters
object1
|
the object to check.
|
object2
|
the object to check against.
|
Returns
boolean
|
true if object1 is an instance of object2.
false if object1 is not an instance of object2.
|
Example
if instanceOf( obj1, obj2 ) then
println( "is instance" )
end
|