Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

VBScript IsEmpty function


May 13, 2021 VBScript


Table of contents


VBScript IsEmpty function

The VBScript IsEmpty function returns a Boolean value.


VBScript IsEmpty function Complete VBScript reference manual

The IsEmpty function returns a Boolean value indicating whether the specified variable has been initialized. True is returned if the variable is not initialized, otherwise False is returned.

Grammar

IsEmpty(expression)

parameter describe
expression Required.An expression (usually a variable name).
<script type="text/vbscript">

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

</script>

The above example output results:

True
False
True
False

Try it out . . .

VBScript IsEmpty function Complete VBScript reference manual