Skip to content

Apply logical XOR on two expressions

Source code

Description

Combine two boolean expressions with XOR.

Usage

<Expr>$xor(other)

Arguments

other numeric or string value; accepts expression input.

Value

Expr

Examples

library(polars)

pl$lit(TRUE)$xor(pl$lit(FALSE))
#> polars Expr: [(true) ^ (false)]