Whatever message this page gives is out now! Go check it out!
IsObject(value)Parameter | Description |
value | A value, typically the name of a variable. |
<cfscript>
obj = new Comp()
obj.returnsString();
writeOutput(isObject(obj)) // Returns True
</cfscript>component {
static function returnsAny(){
return "G'day world" ;
}
function returnsString(){
writeOutput("Hello World");
}
}<cfscript>
random = createObject( "java", "java.security.SecureRandom" ).getInstance("SHA1PRNG");
writeOutput( isObject( random ) );
example = { 'name' = 'I am a struct' };
writeOutput( isObject( example ) );
</cfscript>