And

And(value_1, value_2, ...)
And(value_1, value_2, ...)
And(value_1, value_2, ...)
And(value_1, value_2, ...)
and_expr(value_1, value_2, ...)
and_ value_1, value_2, ...
And(value_1, value_2, ...)
And(value_1, value_2, ...)

Description

The And function computes the conjunction of a list of boolean values, returning true if all elements are "true", and false otherwise.

Parameters

Argument Type Definition and Requirements

value

Boolean

One or more boolean values.

Returns

A boolean value.

Examples

The query below returns false because the last argument is "false".

curl https://db.fauna.com/ \
    -u fnAChGwBcAACAO70ziE0cfROosNJHdgBmJU1PgpL: \
    -d '{ "and": [ true, true, false ] }'
client.Query(And(true, true, false));
System.out.println(
       client.query(And(Value(true), Value(true), Value(false)))
               .get());
result, _ := client.Query(f.And(true, true, false))

fmt.Println(result)
client.query(And(true, true, false))
client.query(q.and_expr(True, True, False))
$client.query do
  and_ true, true, false
end
client.query(And(true, true, false))
client.query(q.And(true, true, false))
  .then((ret) => console.log(ret))
HTTP/1.1 200 OK
{ "resource": false }
false
false
false
false
false
false
false
false