Performs logical negation on an expression.
result = Not expression |
Arguments
- result
-
Any numeric variable.
- expression
-
Any expression.
Remarks
The following table illustrates how result is determined:
| If expression is | Then result is |
|---|---|
|
True |
False |
|
False |
True |
|
Null |
Null |
In addition, the Not operator inverts the bit values of any variable and sets the corresponding bit in result according to the following table:
| Bit in expression | Bit in result |
|---|---|
|
0 |
1 |
|
1 |
0 |
Requirements
See Also
Reference
And OperatorOperator Precedence (VBScript)
Or Operator
Xor Operator
Concepts
Logical Operators (VBScript)Other Resources
Operator Summary (VBScript)