So in fact you believed it was false before true then ;-)
well i believed that they are not ordered. (which they are not in some languages)
That's what I thought, but it appears truth values are typically defined with a partial ordering a <= b iff a && b == a, which gives false <= false < true <= true.
You could choose to ignore that partial ordering at your own peril.
In Visual Basic, False is 0 and True is -1.
-1 == 1 (mod 2) [But yes, this is Yet Another Reason vb can be irritating to the seasoned programmer.]
(I always found VB's definition more obvious, given that -1 == ~0.)
Re:Literals in Programming Languages
by ubernostrum on Thursday February 28, 2013 @04:20AM
(#5297875)
In Python, bool is a subclass of int. The constants True and False have the values 1 and 0 respectively, and it's legal to do arithmetic with them :)
I was surprised to find this is true,
http://plato.stanford.edu/entries/truth-values/#3