
Loop action event... until
Hi,
I'm trying to create a loop action event that cancels when a certain condition is met.
My business case is this:
- I have a model with reservations for visits to a museum.
- I have a model with date/time slots from the museum to make the reservation.
- I create a collection with timeslots for a desired reservation date.
- I loop through the collection and check each timeslot on addition conditions (in other models)
Whenever a suitable timeslot is found, I want to leave the loop.
I can't seem to find a way to achieve this.
Hi,
I'm trying to create a loop action event that cancels when a certain condition is met.
My business case is this:
- I have a model with reservations for visits to a museum.
- I have a model with date/time slots from the museum to make the reservation.
- I create a collection with timeslots for a desired reservation date.
- I loop through the collection and check each timeslot on addition conditions (in other models)
Whenever a suitable timeslot is found, I want to leave the loop.
I can't seem to find a way to achieve this.
Login to reply