def operator_eq(ref_value, values):
    """
    Compare if the field values is in the condition values.
    """
    if isinstance(ref_value, list):
        for v in values:
            if v in ref_value:
                return True
    return ref_value == values[0]
