IF Boolean_Logic = Inconsistent Then IsBug()

BlitzMax Forums/BlitzMax Programming/IF Boolean_Logic = Inconsistent Then IsBug()

H&K:

But don't you see how crazy that is?

If 10 = False Then Print "10 = False"
If 10 = True Then Print "10 = True"

If 10 <> False Then Print "10 <> False"
If 10 <> True Then Print "10 <> True"

See? The whole thing breaks down! 10 is neither true NOR false!


But anyway that's neither HERE nor THERE. You guys haven't even addressed the issue I pointed out:

If 10 Then Print "10 = True"

You can say that BlitzMax treats 1 as True, but that's clearly not the case here, because the above prints 10 = True. So in one case, BlitzMax considers 10 to be neither true nor false, but in the other it considers anything other than 0 to be true.

It is inconsistent!