Skip to content

Apply logical OR on two expressions

Description

Combine two boolean expressions with OR.

Usage

<Expr>$or(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) | FALSE
#> [(true) | (false)]
pl$lit(TRUE)$or(pl$lit(TRUE))
#> [(true) | (true)]