public Value evaluateCondition(Condition condition) {
        Value value = condition.getFunction().accept(this);
        if (!value.isEmpty()) {
            condition.getResult().ifPresent(res -> scope.insert(res, value));
        }
        return value;
    }
Evaluates the given condition in the current scope.

@param condition the condition to evaluate.
@return the value returned by the condition.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/evaluation/RuleEvaluator.java