iif 1.0.1

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.

Crates.io

Example

use iif::iif;

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