Fandom

Visual Basic Wiki

Operator: Not

70pages on
this wiki
Add New Page
Talk0 Share

Not inverses all the bits in its operand.

UsageEdit

Not <expression>

ExampleEdit

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

EquivalencesEdit

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)

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.