View Single Post
Old 27 October 2019, 22:32   #5
Registered User

Daedalus's Avatar
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 4,440
yes, NOT is bitwise too. It works in boolean expressions because true is accepted to be any non-zero value, but is always returned as -1. So a bitwise NOT of -1 will equate to 0 / false. So:

If NOT x = y Then NPrint "Not equal"
Works because x = y is evaluated as -1 or 0, as does
NPrint Bin$(NOT %10000000)
Daedalus is online now  
Page generated in 0.04221 seconds with 11 queries