Skip to main content

eval_op

Function eval_op 

Source
pub fn eval_op(op: PredicateOp, node_val: &str, pred_val: &str) -> bool
Expand description

Evaluate a predicate operator against two string values.

For numeric operators (Lt, Gt, Lte, Gte), attempts to parse both values as f64. Returns false if either side is not a valid number.