def min_max_comparison(value, value_to_compare, condition):
    """
    Translate the values and condition to comparison operator and get result.
    :param value: (numeric) original value
    :param value_to_compare: (numeric) value to compare with, the value to beat.
    :param condition: (str) min/max condition. If "min" condition, we check whether [value] is lower or equal than
                      the value to be compared to.
    :return: bool if [value] beats [value_to_compare]
    """
    if condition == 'min':
        return value <= value_to_compare
    elif condition == 'max':
        return value >= value_to_compare