[][src]Function lep::builtin::is_truthful

pub fn is_truthful(x: &Obj) -> bool

Convert an object to a boolean value. The (), false, 0 (i64) and "" (String) values are considered false; all other objects are considered true.