Not

(Engine-Level Function)

Description: Returns the result of a 32 bit unsigned bitwise logical NOT operation.
Returns: 32 bit unsigned integer
Function Groups: Bitwise Operation
Usage: Script or steady state.
Related to: And | Or | XOr
Format: Not(Value)
Parameters:  
Value
Required. Any numeric expression. The expression will be truncated to a 32 bit unsigned integer.
Comments: If Value is invalid, the return value is invalid.

Examples:

r = Not(1);
s = Not(-1);
t = Not(0);
u = Not(-3);

The values of r, s, t and u will be -2 (0xFFFFFFFE), 0 (0x00000000), -1 (0xFFFFFFFF) and 2 (0x00000002) respectively.