if condition (simple but mind blowing)
Hi:
i have database text field named "value1", and this field is empty.
now i fetch it and store it in variable like:
value1 = objCat.Fields("value1")
now i check the condition, if value1 is empty then show "empty message" other wise show "not empty message". Like:
if value1 = "" then
response.write "empty"
else
response.write "not empty"
end if
Simple :) but result is that, it always shows "not empty". If i put some values in value1 in database, then be no effect. it is shown "not empty"
Then i change my code like this:
if value1 <> "" then
response.write "not empty"
else
response.write "empty"
end if
now it is working correctly :(
i did not understand what is the problem with first code.
Can any one see any problem?
Burhan
|