Stop repeater on empty api endpoint response

Goal:

To fetch data from a dummy API endpoint in batches of 600 records using a repeater, parse the response, and aggregate the data into a text format. I want to stop the repeater once an empty array is returned from the API endpoint (basically from http module).

Screenshots:

Repeater Configuration:

  1. Configured a repeater with an initial value of 0, repeating 5 times with a step of 600.

HTTP Module Configuration:

  1. Set up an HTTP module to make GET requests to the dummy API endpoint with a query parameter to skip records based on the step value.

Iterator Configuration:

  1. Utilized an iterator to map over the array of quotes in the API response.

Text Aggregator Configuration:

  1. Used a Text Aggregator tool to aggregate the data into a text format, including the ID, quote, and author.

Issues:

I need assistance in stopping the repeater or HTTP module once an empty array is returned from the API endpoint.