LOGICAL NOT ~ or !

This is the logical NOT operator. If the expression following the ~ is true (non-0), then the function returns false (0). If the expression following the ~ is false, the function returns true (1).