iif

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

Example

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