def _get_next_name():
    i = 0
    while True:
        possible_name = 'cond{}'.format(i)
        match = next((x for x in instance.criteria.all_of if (x.name == possible_name)), None)
        if match:
            i = (i + 1)
            continue
        return possible_name
def _get_next_name():
    i = 0
    while True:
        possible_name = 'cond{}'.format(i)
        match = next((x for x in instance.criteria.all_of if (x.name == possible_name)), None)
        if match:
            i = (i + 1)
            continue
        return possible_name