def get_nastran_gui_layer_word(i: int, ilayer: int, is_pshell_pcomp: bool
    ) ->str:
    """gets the PSHELL/PCOMP layer word"""
    is_pshell, unused_is_pcomp = is_pshell_pcomp
    word = ''
    if i == 0:
        if ilayer == 0:
            if is_pshell:
                word += 'PSHELL: ilayer=1 & others'
            else:
                word += 'Other Properties'
        else:
            word += 'PSHELL: ilayer=%i' % (ilayer + 1)
    elif ilayer == 0:
        word += 'PCOMP: Total'
    else:
        word += 'PCOMP: ilayer=%i' % ilayer
    return word
