Krikri::VariableSubstitutor::ComparisonEvaluator
ComparisonEvaluator - Handles boolean comparison expressions Supports: ==, !=, <, >, <=, >=
Constructors
Instance methods
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).