You are still comparing a number to text, and you need to make the checks exclusive, since conditions 6 & 7 can be true at the same time. There is no need to check against Cost.Text at all, use productList.At(loopindex, 0), and add Else to events 6 & 7.