IsInstanceOf()
Determines whether an object is an instance of a Lucee interface or component, or of a Java class.
IsInstanceOf( obj=any, type=string );
Returns: Boolean
Examples
writeDump(isInstanceOf({},"java.util.Map")); // true
writeDump(isInstanceOf("Lucee","java.util.Map")); // false
writeDump(isInstanceOf("Lucee","java.lang.String")); // true
See also
- Decision logic
- Components (CFCs)
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)