ASP

ASP Variables Strings Form Arrays 2D Array Loop IF Cookies Dates Dictionaries SQL Numbers Files JSON Database Regular Expression ExecuteGlobal Recordset ServerVariables Bugs ADO AJAX XML Chilkat
O O

Weather Controls

Time Of Day
Rain
Wind Speed
Wind Direction
Clouds

ASP : Bugs

2019-10-23

Bug 1

Dim foo

response.write typename("foo") = False  // False
response.write foo= False //True

NVM - the problem is Im looking at a string foo, and not the variable foo.

Bug 2

response.write typename(foo) // Empty
response.write IsEmpty(foo) // true

if foo or IsEmpty(foo ) then
    response.write typename(foo) // Long WRONG!
    response.write IsEmpty(foo) // False WRONG!
end if

The FIx:

if (foo) or IsEmpty(foo ) then
//...
end if

//or

if foo=true or IsEmpty(foo ) then
//...
end if