Closed Thread Icon

Topic awaiting preservation: simaple asp help (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12561" title="Pages that link to Topic awaiting preservation: simaple asp help (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: simaple asp help <span class="small">(Page 1 of 1)</span>\

 
wealoon
Nervous Wreck (II) Inmate

From: -
Insane since: Jun 2002

posted posted 12-24-2002 08:57

hi.

if i want to write a if statement in asp, and wan the write the null value, to i just put "" or "null"

can i write it as

if strFname = "" and strLname <> "" then {}

or i have to put the word null?

if strFname = "null" and strLname <> "null" then {}
?

thanx<:}

-

fizgig
Nervous Wreck (II) Inmate

From: West Bloomfield MI
Insane since: Aug 2001

posted posted 01-02-2003 19:32


test for empty string
if variable = "" then

'do stuff

end if

test for null
if isNull(variable) = True then

'dostuff

end if

requested form variables are always empty strings if blank, database values will probably be nulls

« BackwardsOnwards »

Show Forum Drop Down Menu