Performs a logical NOT.
NOT(val)
val |
- |
A scalar, series or table. |
A scalar, series, or table.
not(W1)
returns a table or series with ones where W1 contains zeros, and zeros where W1 contains non zero values.
not({1, 2, 0})
returns {0, 0, 1}.
The NOT function can also be performed using the ! character. The expression not(W1) is identical in effect to !W1. However, NOT is particularly useful for macro, SPL, command files, and menu creation, as the "!" character also indicates a single line comment.
See ~ to perform a bitwise complement function.
< <= > >= == != (Conditional Operators)
&& || ! AND OR NOT XOR (Logical Operators)