> For the complete documentation index, see [llms.txt](https://doc.duaer.com/zh/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/zh/build/limit.md).

# 在 Duaer 里用 Limit 限制条数

在 Duaer 里，Limit 只留下前几条或后几条。超出 Max Items 的条目在这一步被丢掉。
## 只留几条往下走

1. 搜索 Limit，接到条目很多的节点后面。
2. Max Items 写成要保留的条数，例如 5。
3. Keep 选 First Items 或 Last Items。
4. 点执行此步骤。输出里最多是你设的条数。

Limit 没有 false 出口。要按条件分路，用 If 或 Filter，见 [在 Duaer 里用 If 和 Switch 分叉](/zh/flow-logic/splitting.md)。
## Questions

### Duaer 的 Limit 会改上游节点已经拿到的数据吗？

不会。它只决定这一步往后传多少条。上游节点的输出还在那次执行里。

