[thelist] ASP.NET Weird If-Then thing with Is Nothing

Casey aspnet at thecrookstons.com
Thu Aug 11 10:54:47 CDT 2005


if not sdrDocs("Address2") is nothing then
   lblDocMainAddress.Text = lblDocMainAddress.Text & "<br>" &
sdrDocs("Address2")& "<br>"
end if

Okay this should be an easy one.  The weird thing is, both of the <br>'s get
included regardless if Address2 is null or not.  I thought EVERYTHING
between the "then" and "end if" were conditional... right?

TIA

Casey



More information about the thelist mailing list