not_
ReQL command: ~, not_
Command syntax
bool.not_() → bool not_(bool) → bool (~bool) → bool
Description
Compute the logical inverse (not) of an expression.
not_
can be called either via method chaining, immediately after an expression that evaluates as a boolean value, or by passing the expression as a parameter to not_
. All values that are not False
or None
will be converted to True
.
You may also use ~
as a shorthand operator.
Example: Not true is false.
r.not_(True).run(conn) r.expr(True).not_().run(conn) (~r.expr(True)).run(conn)
These e