And

Supported in: Batch, Streaming

Returns true if all of the specified conditions are true. Nulls are considered false.

Expression categories: Boolean

Declared arguments

  • Conditions - List of conditions from which the output is calculated.
    List<Expression<Boolean>>

Output type: Boolean

Examples

Example 1: Base case

Argument values:

  • Conditions: [left_boolean, right_boolean]
left_booleanright_booleanOutput
truetruetrue
truefalsefalse
falsetruefalse
falsefalsefalse

Example 2: Null case

Argument values:

  • Conditions: [null, true]

Output: false