@TempodiBasic
Che piacere vederti my friend from Italia!
Thanks for the better explanation. Boolean logic is not a must for programming, but it can make certain jobs, like in this neat mouse example, easier to code.
I want to get some more info on the SAME vs EQUALS above the bitwise comparison vs numeric values. For instance...
So a EQV b is -7 in this example. I do not work with bits so I don't see how that -7 result was calculated.
I'll probably find uses for this EQV keyword in my code now, just like I did with SGN(). Funny, I actually found some code from several years ago that I did use SGN() in, but then forgot about it. I even forgot this was a Keyword of the Day I read less than 2 weeks ago. I mean isn't aging great?... Sure, if you're a damn bottle of wine! Oh well...
Note: Similar for strings in JAVA ==, which can work with strings and differentiates how the string was made. For instance, == is False for a$ = "Pete" b$="P"+"e"+"t"+"e" a$ == b$ is FALSE, while a$ = b$ is TRUE. Just saying.
Pete
Che piacere vederti my friend from Italia!
Thanks for the better explanation. Boolean logic is not a must for programming, but it can make certain jobs, like in this neat mouse example, easier to code.
I want to get some more info on the SAME vs EQUALS above the bitwise comparison vs numeric values. For instance...
Code: (Select All)
DIM AS _UNSIGNED _BYTE a, b
a = 2
b = 4
PRINT a EQV b, a = b
So a EQV b is -7 in this example. I do not work with bits so I don't see how that -7 result was calculated.
I'll probably find uses for this EQV keyword in my code now, just like I did with SGN(). Funny, I actually found some code from several years ago that I did use SGN() in, but then forgot about it. I even forgot this was a Keyword of the Day I read less than 2 weeks ago. I mean isn't aging great?... Sure, if you're a damn bottle of wine! Oh well...
Note: Similar for strings in JAVA ==, which can work with strings and differentiates how the string was made. For instance, == is False for a$ = "Pete" b$="P"+"e"+"t"+"e" a$ == b$ is FALSE, while a$ = b$ is TRUE. Just saying.
Pete
If eggs are brain food, Biden takes his scrambled.