Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
THE WORLD'S LARGEST WEB DEVELOPER SITE

VBScript IsNull Function


❮ 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 »

❮ Complete VBScript Reference