IsEmpty Variable Testing Function

Before you can do anything with a variable, it must exist. This function helps ensure that session variables and the like have been initialized before you try to use them.
If you had a variable called LogonID, your syntax would be:
NoLogon = IsEmpty(LogonID)
if NoLogon = TRUE then
response.write "you must log on before you view this page."
end if
Variable Testing Functions
If you had a variable called LogonID, your syntax would be:
NoLogon = IsEmpty(LogonID)
if NoLogon = TRUE then
response.write "you must log on before you view this page."
end if
Variable Testing Functions
![]() | Introduction to ASP Ebook Download this ebook to get everything you need to know about learning ASP - from a step by step tutorial to function lists, sample code, common errors and solutions, and much more! 101 pages. |

Editor's Picks Articles
Top Ten Articles
Previous Features
Site Map
Content copyright © 2023 by Lisa Shea. All rights reserved.
This content was written by Lisa Shea. If you wish to use this content in any manner, you need written permission. Contact Lisa Shea for details.