@Override
    public Expression toExpression() {
        if (result == null) {
            throw new RuntimeException("Cannot generate expression from a condition without a result");
        }
        return Expression.getReference(result, javaLocation());
    }
Gets the function used to express this condition.

@return the function for this condition.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/syntax/rule/Condition.java