Home RAP

Boolean comparison: (True <> False) = False ?

edited February 2008 in RAP
Hi,

I just ran into a weird issue using ReportBuilder 10.06. I was comparing
two boolean variables as "Var1 <> Var2", where Var1 is True and Var2 is
False, and it apparantly returned False. I simplified the code until the
values were hardcoded:


if True <> False then
ShowMessage('Not equal')
else
ShowMessage('Equal??');


...shows "Equal??". I worked around it by rewriting the code:

if not (True = False) then

...which does work as expected. Might want to take a look at it though :)


Regards,
Mark van Renswoude

Comments

This discussion has been closed.