iif 1.0.0

Returns one of two parts, depending on the evaluation of an expression.
Documentation

iif

Returns one of two parts, depending on the evaluation of an expression.

Example

let active = true;
let active_text = iif!(active, "Active", "Inactive")