Skip to contents

Return default value if values are equal

Usage

.if_value(x, value, default)

Arguments

x

Condition to be compared with value.

value

Value to be compared with x.

default

Default value to be returned when `x` is identical to `value`.

Value

Evaluated condition or provided default value.