wrote: I still (partially) recall some language or environment I used way back in the 90's (maybe even the 80's ?) where booleans were typically signed ints with a -1 value (all bits set high). As I recall, any non-zero integer value would evaluate as True, positive or negative alike. A "greater than 0" comparison would have wrongly missed all the built-in boolean constants.
So my habit would be to check "not equal to 0" so I don't have to check to see whether the int is signed or unsigned. (I'm pretty sure this came up in another thread not all that long ago, but I couldn't find it easily just now.)
-Kevin P
That was something I never knew!