Hi @braunnz and welcome to the KNIME community forum,
You can find your answer here (and learn more about loops in KNIME):
https://blog.statinfer.com/which-loop-is-the-right-one-for-me/
And here you can learn more about making use of flow variables in KNIME:
https://blog.statinfer.com/knime-spirits-at-your-service/