Jump to content

How to check if a string is empty


Recommended Posts

How do we check if a given string is empty or not? I've tried isNull, isEmpty as well as equal and non-equal signs, the results are the same for empty and filled texts.
My code looks like this:

Call am(es)
Call am(fs)

es = ""
fs = "ms"

Sub am(s)
 if s <> "" then
  response.write "The string is not empty <br>"
  response.write "The string is empty <br>"
 end if
end Sub


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...