def lbDepthList(lbStruct, depth, parentList=None):
    if (len(lbStruct) > 0):
        if ((depth == topDepth) or (not hasDepthColumn)):
            return lbStruct[(- 1)].childStruct
        return lbDepthList(lbStruct[(- 1)].childStruct, (depth - 1), list)
    else:
        if hasDepthColumn:
            cntlr.addToLog('Depth error, Excel sheet: {excelSheet} row: {excelRow}'.format(excelSheet=importSheetName, excelRow=iRow), messageCode='importExcel:depth')
        return None
def lbDepthList(lbStruct, depth, parentList=None):
    if (len(lbStruct) > 0):
        if ((depth == topDepth) or (not hasDepthColumn)):
            return lbStruct[(- 1)].childStruct
        return lbDepthList(lbStruct[(- 1)].childStruct, (depth - 1), list)
    else:
        if hasDepthColumn:
            cntlr.addToLog('Depth error, Excel sheet: {excelSheet} row: {excelRow}'.format(excelSheet=importSheetName, excelRow=iRow), messageCode='importExcel:depth')
        return None