VBScript IsObject Function

Definition and Usage

The IsObject function can return a boolean value indicating whether the specified expression is an automation object. If the expression is an object, it returns True. Otherwise, it returns False.

Syntax

IsObject(expression)
Parameter Description
expression Required. Expression.

Instance

Example 1

dim x
set x=me
document.write(IsObject(x))

Output:

True

Example 2

dim x
x="me"
document.write(IsObject(x))

Output:

False