IF Boolean_Logic = Inconsistent Then IsBug()

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

"Thank you for reitterating my point above. However you seem to be confused between what constitutes a boolean value (true or false) and a boolean expression."

Have you been reading my posts, or are you still arguing about what I said in my initial post? If you have been keeping up to date then on what point do you think I am confused here?


"If 10 (or even if "10") gives a true result, not because 10 has a boolean value of true, but because the boolean expression 10, evaluates to true."

I know that.

But that's not what I asked in my more recent posts. I asked why does 10 evaluate to true, rather than erroring?

The number 10 is neither true nor false, so why does it evaluate to true? Declaring it to evaluate to true is arbitrary. Why is 10 true, but 0 false? They are both integers, which are neither true nor false.

I hope you realise that at this point I am speaking in hypotheticals of how the language should perhaps work, and not how I think it actually DOES work. I understand how it does work, and that 10 evaluates to true because it is not 0. But what I am asking is if that makes sense to do. It might be convenient, but it is confusing and nonsensical.