VBScript IsNull Function

Definition and Usage

The IsNull function can return a Boolean value indicating whether the specified expression is invalid data. If the expression is Null, it returns True, otherwise it returns False.

Syntax

IsNull(expression)
Parameter Description
expression Required. Expression.

Example

dim x
document.write(IsNull(x))
x=10
document.write(IsNull(x))
x=Empty
document.write(IsNull(x))
x=Null
document.write(IsNull(x))

Output separately:

False
False
False
True