Skip to content

not

Is false

Syntax: not x

Returns 0b where x not equal to zero, and 1b otherwise.

Applies to all data types except symbol, and to items of lists, dictionary values and table columns.

not is an atomic function.

q)not -1 0 1 2
0100b
q)not "abc","c"$0
0001b
q)not `a`b!(-1 0 2;"abc","c"$0)
a| 010b
b| 0001b

neg
Basics: Logic