VBScript IsEmpty Function

The IsEmpty function returns a Boolean value that indicates whether a specified variable has been initialized or not. It returns true if the variableis uninitialized; otherwise, it returns False."

Example

Example

<%

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

%>

The output of the code above will be:

True
False
True
False

❮ Complete VBScript Reference