default Condition toCondition(String result) {
        return toConditionBuilder().result(result).build();
    }
Converts this function into a condition which stores the output in the named result.

@param result the name of the result parameter.
@return the function as a condition.
smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/syntax/ToCondition.java