Skip to content

Apply logical AND on two expressions

Description

Combine two boolean expressions with AND.

Usage

<Expr>$and(other)

Arguments

other Element to add. Can be a string (only if expr is a string), a numeric value or an other expression.

Value

A polars expression

Examples

library("polars")

pl$lit(TRUE) & TRUE
#> [(true) & (true)]
pl$lit(TRUE)$and(pl$lit(TRUE))
#> [(true) & (true)]