Skip to content

Apply logical XOR on two expressions

Description

Combine two boolean expressions with XOR.

Usage

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