Skip to main content

policy.where()

Assign yes where condition is true and no otherwise.

Usage

policy.where(
    condition,
    yes,
    no,
)

Equality follows the comparison operator exactly: > is false at the threshold, >= is true.