And and¶
Performs a logical AND operation on its arguments. Returns true only if all arguments are true.
(and true false)
false
(and true true)
true
(and false false)
false
(and [true false true] [false true false])
[false false false]
(and [true false true] [false true false] [true false true])
[false false false]
(and [true false true] true)
[true false true]
Info
- Works with scalar booleans and boolean arrays
- When applied to arrays, performs element-wise AND operation
- Supports multiple arguments (more than 2)
- Returns
falseif any argument isfalse
Tip
Use and to combine multiple boolean conditions or filter data with multiple criteria