def _update_case_key(key, elemental_quantities, seti2, eid_map, nid_map):
    """Updates a Case Control SET card.  A set may have an elemental result
    or a nodal result."""
    values2 = []
    eids_missing = []
    nids_missing = []
    if key in elemental_quantities:
        for eid in seti2:
            if eid not in eid_map:
                eids_missing.append(eid)
                continue
            eid_new = eid_map[eid]
            values2.append(eid_new)
    else:
        for nid in seti2:
            if nid not in nid_map:
                nids_missing.append(nid)
                continue
            nid_new = nid_map[nid]
            values2.append(nid_new)
    return eids_missing, nids_missing, values2
