QbLzR‖Not Operator

Contents
vgGUy‖

# JEEa2‖Not Operator

ejJg3‖Negates an expression by inverting the bit values.

## L2jEZ‖Syntax:

    Ac9zW‖Result = Not Expression

## xQY9B‖Parameters:

YaiHh‖ Result: Any numeric variable that contains the result of the negation.

9jGDq‖ Expression: Any expression that you want to negate.

fJhHL‖When a Boolean expression is negated, the value True changes to False, and the value False changes to True.

fMoFC‖In a bitwise negation each individual bit is inverted.

## s8YGh‖Example:

    Sub ExampleNot
    Dim vA As Variant, vB As Variant, vC As Variant, vD As Variant
    Dim vOut As Variant
        vA = 10: vB = 8: vC = 6: vD = Null
    fNs7L‖    vOut = Not vA ' Returns -11
    xoF8f‖    vOut = Not(vC > vD) ' Returns -1
    CNSDG‖    vOut = Not(vB > vA) ' Returns -1
    v33Dn‖    vOut = Not(vA > vB) ' Returns 0
    End Sub

Please support us!