Skip to main content

cond

Function cond 

Source
pub fn cond(c: Val, t: Val, e: Val) -> Val
Expand description

c ? t : e, as SQL’s CASE WHEN c THEN t ELSE e END: a null condition takes e.