def SetBptCndEx(ea, cnd, is_lowcnd):
    bpt = idaapi.bpt_t()

    if not idaapi.get_bpt(ea, bpt):
        return False

    bpt.condition = cnd
    if is_lowcnd:
        bpt.flags |= BPT_LOWCND
    else:
        bpt.flags &= ~BPT_LOWCND

    return idaapi.update_bpt(bpt)
Set breakpoint condition
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/SetBptCndEx