I'm attempting to have my if/ else statement search the import file for a name and continue to do so until the count hits 5. If the count does hit 5 then (**This item does not exist) will be displayed. This works fine until I try to increase the number of items in my import file to 5 or greater.
I want that to occur if the loop does not find a a matching item in the file that it imports. Therefore saying that the item doesn't exist If it does find the item then get the float which is the price. This code works BUT it only works to five. If its 6 or higher it will run but it doesn't display **This item does not exist while assigning the raw cost to approx. 11 dollars. So to be clear it ignores the else statement completely.
original code(This works fine but I need to increase the 5) :
if(count < 5)
If I change it to 6 or higher (This completely ignores the else statement):