pub fn evaluate_condition(
condition: &str,
variables: &HashMap<String, String>,
) -> Result<bool>Expand description
Evaluate a simple template-style condition. Supports:
{{ var == "value" }}{{ var != "value" }}{{ 'value' in var }}{{ var }}(truthy check)
Variable references are substituted from the supplied variables
map before the comparison is run.