bool & bool → bool
bool.and_([bool, bool, ...]) → bool
r.and_([bool, bool, ...]) → bool
Compute the logical “and” of one or more values.
and_ command can be used as an infix operator after its first argument (
r.expr(True).and_(False)) or given all of its arguments as parameters (
r.and_(True, False)). The standard Python and operator,
&, may also be used with ReQL.
and_ with zero arguments will return
Example: Return whether both
b evaluate to true.
> a = True > b = False > (r.expr(a) & b).run(conn) False
Example: Return whether all of
z evaluate to true.
> x = True > y = True > z = True > r.and_(x, y, z).run(conn) True
Couldn't find what you were looking for?