> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/build/limit.md).

# Cap how many items continue with Limit in Duaer

In Duaer, Limit keeps only the first or last items. Items beyond Max Items are dropped at that step.
## Keep only a few items

1. Search for Limit and connect it after a node that returns many items.
2. Set Max Items to how many should continue, for example 5.
3. Set Keep to First Items or Last Items.
4. Select Execute step. The output has at most that many items.

Limit has no second output. To branch by a condition, use If or Filter. Refer to [Split a Duaer run with If and Switch](/flow-logic/splitting.md).
## Questions

### Does Limit in Duaer change what the previous node already fetched?

No. It only decides how many items continue after this step. The previous node’s output for that run stays as it was.

