Hi @gewqgewq , and welcome to the KNIME community,
Do you have some sample data (with anything sensitive removed) perhaps in a spreadsheet, showing the data you have and your expected results. This will make it easier for somebody to help with suggestions.
thanks
Hi,
If I understand correctly, you have a sorted list of required items and you want to see how many of those fit into the stock you have. I think you do not necessarily need a loop. You can use a Moving Aggregator with the cumulative option to sum up your required quantities cumulatively. Then you can check up to which point the cumulative sum is lower than your stock, e.g using a Rule Engine node. If that is not what you need, I agree with @takbb that we need more info.
Kind regards,
Alexander