I suppose you dislike the idea of NaN as well and think we should just set that to 0.
No, because a) NaN and Inf are both mathematical concepts (NaN is usually a expression of a complex number). What number is "Orange"?
That's my point. Yours is When is "Orange" not "Orange".If "sswift" Print "Strings can be true aswell" EndIf If Null Print "And false aswell" EndIfYou'll notice that both above examples are functionally equivalent of if true, and if false repectively.
Ints are not booleans, and vice versa.
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.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 think you need to read up on your Boolean Algebra.