MCPcopy Create free account
hub / github.com/codemod/codemod / evaluate_condition

Function evaluate_condition

crates/models/src/variable.rs:177–206  ·  view source on GitHub ↗

Evaluate if a condition string resolves to a truthy value First tries to resolve as an expression with operators, falls back to simple variable resolution

(
    condition: &str,
    params: &HashMap<String, Value>,
    state: &HashMap<String, Value>,
    matrix_values: Option<&HashMap<String, Value>>,
    steps: Option<&HashMap<String, HashMap<String, S

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

executeMethod · 0.85
execute_taskMethod · 0.85

Calls 5

expr_only_reFunction · 0.85
resolve_expressionsFunction · 0.85
getMethod · 0.45
as_strMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…