VBScript IsNull Function


VBScript Reference Complete VBScript Reference

The IsNull function returns a Boolean value that indicates whether a specified expression contains no valid data (Null). It returns True if expression is Null; otherwise, it returns False.

Syntax

IsNull(expression)

Parameter Description
expression Required. An expression

Example

Example

<%

Dim x
response.write(IsNull(x) & "<br />")
x=10
response.write(IsNull(x) & "<br />")
x=Empty
response.write(IsNull(x) & "<br />")
x=Null
response.write(IsNull(x))

%>

The output of the code above will be:

False
False
False
True

Show Example »

VBScript Reference Complete VBScript Reference

Color Picker

colorpicker