When working with loop in Flows in Salesforce, at times you may want to exit from the loop without processing all the records.
We recently had one of such requirements for our internal implementation where we wanted to assign discount coupon codes to a bunch of contacts and wanted to exit the loop based on certain conditions, without processing all the records in the loop.
This video is based on the solution that we came up from our own implementation.