VBScript IsEmpty Function
Definition and Usage
The IsEmpty function can return a boolean value indicating whether the specified variable has been initialized. If not initialized, it returns true, otherwise returns False.
Syntax
IsEmpty(expression)
Parameter | Description |
---|---|
expression | Required. Expression (usually a variable name). |
Example
dim x document.write(IsEmpty(x)) x=10 document.write(IsEmpty(x)) x=Empty document.write(IsEmpty(x)) x=Null document.write(IsEmpty(x))
Output separately:
True False True False