Quantcast Operator: Not - Visual Basic Wiki
Recent changes Random page
GAMING
Technology
 
Gaming
Entertainment
Science Fiction
Biggest wikis
Hobbies
Music
See more...

Operator: Not

From Visual Basic Wiki

Jump to: navigation, search

Not inverses all the bits in its operand.

[edit] Usage

Not <expression>

[edit] Example

Print Not -43, Not False
'This will display " 42     True".

[edit] Equivalences

The following are some arithmetic identities involving Not.

Not X = X Xor True
Not Not X = X
Not X = True - X 'Warning: causes type conversion to Integer when working with a Boolean
Not X Or Not Y = Not (X And Y)
Not X And Not Y = Not (X Or Y)
X Imp Y = Not X Or Y
X Xor Y = (X Or Y) And Not (X And Y)
Rate this article:
Share this article: