Servertec | instanceOf( )

Content Introduction Release Notes Features FAQs Requirements Installation Change Log Future Plans Knowledge Base Reference Manual Conventions Scriptlets Data Types Constants Variables Procedures Operators Statements Objects Array Config Context Cookie Date Enumeration File FileDescriptor Hashtable Internet IO JDBC Number Object defined( ) equals( ) forName( ) getClass( ) getName( ) hashCode( ) instanceOf( ) isDate( ) isDouble( ) isInstance( ) isInteger( ) isLong( ) isNull( ) isObject( ) isString( ) newInstance( ) Object( ) toString( ) undefine( ) Properties Random Request RequestDispatcher Response Session SqlTypes Stack StreamTokenizer String StringBuffer StringTokenizer System Vector Wrappers Servlet Server Pages Preprocessor Executable Samples Legal Contact Us |
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
top of page Copyright © 1998-2005 Servertec. All rights reserved. Privacy Statement. Last Modified: Sun Sep 04 14:56:08 EDT 2005