Skip to main content

matches_criteria

Function matches_criteria 

Source
pub fn matches_criteria(
    cell_value: &CellValue,
    criteria: &str,
    ctx: &Evaluator<'_>,
) -> Result<bool>
Expand description

Check whether a cell value matches a criteria string.

Criteria format: “>5”, “<=10”, “<>text”, “=exact”, plain “text”. Numeric comparisons are used when both sides parse as numbers; otherwise strings are compared case-insensitively. Wildcards use Excel’s * and ? behavior, with ~ escaping *, ?, or ~.