Skip to main content

truthy

Function truthy 

Source
pub fn truthy(v: &Value) -> bool
Expand description

Whether a condition holds. NULL does not; text, which reaches a condition only as an unknown literal or parameter, holds when boolin reads it as true (parse analysis rejects any other text); the engine’s numeric retrieval predicates hold when non-zero.