def to_dict(condset: set) -> dict:
    """
    Create a dictionary of conditions with a unique integer value for each
    condition.
    :param condset: Conditions set.
    :return: Dictionary of all conditions with integer values.
    """
    conds = {}
    index = 0
    for item in condset:
        conds[str(item)] = index
        index += 1
    return conds