class

Krikri::VariableSubstitutor::ComparisonEvaluator

Inherits Reference < Object

ComparisonEvaluator - Handles boolean comparison expressions Supports: ==, !=, <, >, <=, >=

Constructors

Instance methods

evaluate(expr : String) : String

Evaluate a comparison expression Example: ssl_check.rc == 0, count > 5

Operands are resolved STRUCTURED (JSON::Any, not pre-stringified) so the ordering comparisons below can see real operand classes: the old String-typed operands collapsed a container operand to its JSON text and then silently string-compared it (dict <= 6.6 answered "False" where Jinja2 raises TypeError), and a missing/None operand collapsed to a string too (missing_var < '17' answered "True" where Jinja2 raises on the comparison against Undefined/None).

Source
evaluate_simple_value(expr : String) : String | Int64 | Bool | Nil

Legacy String-typed form of #evaluate_simple_value_typed, kept for API compatibility - every internal consumer now uses the typed resolver directly.

Source