Repeat until
Repeat until runs the block before it again when it did not find enough: with a wider distance, keeping more, or with the next city or kind of place from your list. It stops as soon as enough was found, at the most rounds you allow (5 at most), or when the run’s credits run out, and says what it did in each round. Flows never loop back on themselves; this is the safe way to keep looking.
In the editor: Runs the block before it again, a little wider each round, until enough is found: a wider distance, more kept (or Automatic, which picks the one that can help from each answer), or the next city or kind of place from a list. It can count only what gets through the Filter or Branch right after it. At most 5 rounds, and each round is paid like a run of that block. Put it right after a block that finds things, such as Nearby places, Map business scan, Job postings, News, Regional data or Run another flow.
Settings
Until
Pick oneWhen it has found enough: a number of items, any item at all, a number of items that meet a rule (the same rules as Filter), or a number of items that get through the Filter, Branch (Yes), Remove duplicates, Calculated field and Sort and limit blocks right after it.
- At least a number of items
- At least one item
- Enough items meet a rule
- Enough items get through the blocks after it
How many
A numberItems found in all.
Needed before the flow can run.
Field
Pick onePick from 35 choices.
Field name
TextA field an earlier block adds, as named in the test run results. For example one of the fields your xMap LLM block adds.
Needed before the flow can run.
Is
Pick one- at least (≥)
- at most (≤)
- equal to (=)
- not equal to (≠)
Is
Pick one- is
- is not
- contains
- has a value
- is empty
Value
A numberNeeded before the flow can run.
Value
TextNot case-sensitive. Separate several values with commas to match any of them.
Needed before the flow can run.
Each round
Pick oneWhat changes each round. Automatic reads each answer: a full one (as many as the block keeps) raises how many it keeps and keeps the distance, a short one widens the distance by as much as what was found suggests, and a round the credits left would not cover is made smaller or not run. Or always the distance of the block before it, always how many it keeps, or one of its settings, which takes the next value of your list.
Its distance or radius grows, up to the most that block allows.
- Widen the distance
- Find more (raise the most it keeps)
- Try the next value in a list
- Automatic: the distance or the most it keeps
How
Pick one- Double it
- Add a set amount
Add each round
A numberKilometres added to the distance each round.
Needed before the flow can run.
Setting to change
Pick oneA setting of the block before it, such as its kinds of place, search words or location.
Needed before the flow can run.
Values to try next
Text, several linesRound 2 uses the first line, round 3 the second, and so on (up to 4).
Needed before the flow can run.
At most
Pick oneThe most rounds, counting the first run of the block before it as round 1.
The first run of the block before it is round 1.
- 2 rounds
- 3 rounds
- 4 rounds
- 5 rounds
Keep
Pick oneEverything found in all the rounds, each item once, or only what the last round found.
- Everything found, without duplicates
- Only the last round
What comes out
Each item that leaves the block carries these fields, to use in the blocks after it as {{field}}.
What comes out
Every run.
(the items): What the rounds found: all of it without duplicates, or only the last round.(the step): One line a round and why it stopped.
How to use it
Enough leads every morning
The rep always gets a full list: in a busy area it stops at once, in a quiet one it looks further.
Postings in the next city
When Lyon has too few, the same search runs in Marseille, then Toulouse.
Rivals within reach
Finds the nearest rival even when there is none within the first kilometre.
Another kind of place
Tries close alternatives in turn until there are enough to score.
Listings in a wider ring
A small area is searched wider only when it has too few listings.
Enough charging points
Each week the list holds at least ten stations, however sparse the area.
Good to know
- Put it right after one block that finds things, with only that block linked into it.
- Each extra round is paid like a run of the block before it, but only for the items it adds; when the run’s credits would not pay for another round it stops and keeps what it has.
- Until a number of items that get through the blocks after it: it counts what the Filter or Branch right after it would let through, so the list you get is the size you asked for after filtering.
- The distance and the number kept never go past what the block before it allows.
- Test runs repeat too: they fetch data, they never send anything.
- {{round}} in the settings of the block before it is the round’s number.
Works well with
- Nearby places: Places around a point from xMap’s own places database (300M+ places, refreshed every month): pick the types of place (more than 5,000, such as Restaurant, Cafe, Pharmacy, Hospital or Gas station, or a whole group of them) and how far to look.
- Map business scan: Finds businesses on online maps live: name, category, rating, address, phone, website and whether it is open.
- Job postings: Live job postings: who is hiring, for what, and where.
- News: Stories from news feeds (RSS or Atom) or a website’s news page: title, link, when, the source and a short summary.
- Regional data sources: xMap’s regional datasets: pick a country, then a dataset, such as real estate transactions in Saudi Arabia, property for rent or for sale listed right now in the United States, Japan and the United Arab Emirates, or Road traffic history in the United Arab Emirates (cars counted hour by hour since 2021).
- Run another flow: Runs one of your other flows with the items that reach this block, once with all of them or once for each (a loop), and can carry on with what that flow found.
Help articles
- Repeat until: keep looking until enough is found: Run a block that finds things again, a little wider each round, until it finds enough.
- If it finds nothing: try another source: Run another block only when a block found nothing.
Try it
Build a flow with Repeat until on the home page, no account needed, or book a call. Try it live