J
Jason
I am fairly new to ASP--I have been using it about 2 months. I did these
tests (below), and it doesn't make sense to me. False is equal to 0, and
that's fine. True should be equal to 1, but it's not. Actually, True
should be equal to anything but False, null, and 0. Is there a workaround
for this? Or do I need to change all my comparisons to = 1 instead of =
true?
response.write True = 1 'prints False
response.write True = 0 'prints False
response.write False = 1 'prints False
response.write False = 0 'prints True
Just fyi, I am trying to convert our database from Access to MySQL. Access
stores boolean as true/false, and MySQL stores booleans as 1 and 0, which is
why I have this problem.
Thanks in advance for your responses.
--Jason
Webmaster
Substitute Teaching Institute,
Utah State University
tests (below), and it doesn't make sense to me. False is equal to 0, and
that's fine. True should be equal to 1, but it's not. Actually, True
should be equal to anything but False, null, and 0. Is there a workaround
for this? Or do I need to change all my comparisons to = 1 instead of =
true?
response.write True = 1 'prints False
response.write True = 0 'prints False
response.write False = 1 'prints False
response.write False = 0 'prints True
Just fyi, I am trying to convert our database from Access to MySQL. Access
stores boolean as true/false, and MySQL stores booleans as 1 and 0, which is
why I have this problem.
Thanks in advance for your responses.
--Jason
Webmaster
Substitute Teaching Institute,
Utah State University