Returns whether a specified object is an instance of the given class name.
Syntax
isInstance( object , classname )
object.isInstance( classname )
Parameters
object
|
the object to check.
|
classname
|
the name of the class to check against.
|
Returns
boolean
|
true if object is an instance of classname.
false if object is not an instance of classname.
|
Example
if instanceOf( obj1, "java.io.File" ) then
println( "is instance" )
end
|