Not Operator

For a Boolean expression, returns the opposite value. For an integer expression, does a bitwise NOT operation.

Syntax

Not expression

Parts

expression
A Boolean or integer expression.

Instructions

If expression is The result is
TrueFalse
FalseTrue
If the bit in expression is The bit in the result is
10
01

Examples

Var pattern As UInt8 = &B11110000
Var inverse = Not pattern
After execution
VariableValue
pattern240 (&B11110000)
inverse15 (&B00001111)

See also