Skip to main content

eval_bool

Function eval_bool 

Source
pub fn eval_bool(expr: &str, vars: &[(&str, &Value)]) -> Result<bool, String>
Expand description

Evaluate an expression to a BOOLEAN with the given variables in scope (each (name, value) becomes a top-level identifier). A non-bool result is an error — a predicate must decide, not coerce.