@SSwift
From me. 4th post
From you Post above.
There are two different things here,
1)If X. Is a variable true. In the Old days you would take this to mean "Does X exist", but now with all the NULL stuff its taken to mean does X = a real non False value.
so
If X then.... Means IF X <> FALSE
2)If X = TRUE. Is a variable equal to true. This is not asking does the variable exist. It is simply asking does x equal the arbitary value of TRUE, which in this case is 1
Now just because a variable IS true doesnt mean it equals TRUE.
Remember. True and False, are simply constants that make passing pass or fail flags from functions easyer
From me. 4th post
10 is true (and so is -10), because they dont equal false which is 0
From you Post above.
If what you say is true, then this Wikipedia entry is wrong:
en.wikipedia.org/wiki/Bitwise_operators
In C and C++, a numerical value is interpreted as "true" if it is non-zero.
Can you not see that everyone (Including Wikipedia), have been saying the same thingen.wikipedia.org/wiki/Bitwise_operators
In C and C++, a numerical value is interpreted as "true" if it is non-zero.
There are two different things here,
1)If X. Is a variable true. In the Old days you would take this to mean "Does X exist", but now with all the NULL stuff its taken to mean does X = a real non False value.
so
If X then.... Means IF X <> FALSE
2)If X = TRUE. Is a variable equal to true. This is not asking does the variable exist. It is simply asking does x equal the arbitary value of TRUE, which in this case is 1
Now just because a variable IS true doesnt mean it equals TRUE.
Remember. True and False, are simply constants that make passing pass or fail flags from functions easyer