brianrpsgt1 wrote: > > def step1(val): data2_row = [] > for d1r in data1_row: > if d1r[1] >= val: > switch = 0 > data2_row = d1r[0],d1r[1],d1r[2],switch data2_row.append([d1r[0],d1r[1],d1r[2],switch]) HTH, Emile