def none_if_equals_filter(value, equal):
    """
    Returns 'None' if the input equals the other value, otherwise it returns the input.
    """
    if value == equal:
        return None
    else:
        return value
