LibreOfficeDev 25.8 Help
ejJg3‖Negates an expression by inverting the bit values.
Ac9zW‖Result = Not Expression
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.
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