HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

VBScript IsEmpty Function


VBScript Reference Complete VBScript Reference

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

Syntax

IsEmpty(expression)

Parameter Description
expression Required. An expression (most often a variable name)

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

Show Example »

VBScript Reference Complete VBScript Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE