Take While the Numbers Are Small
TakeWhile stops at the first item that fails the predicate, unlike a filter, which would keep testing the rest. That difference is the reason to reach for it: it caps work rather than selecting from it. The expression binds each item as `item`.

The workflow
Nodes in this workflow
4 nodes · 4 types- Collectionnodetool.control.Collection
- Listnodetool.constant.List
- Outputnodetool.output.Output
- Take Whilenodetool.control.TakeWhile
How to run it
- 01
Download NodeTool Studio
Install the free desktop app for macOS, Windows, or Linux. It runs on your own machine, no account required to start.
- 02
Open the Take While the Numbers Are Small template
Browse the built-in template library inside Studio and open this workflow onto the canvas. Every node is already wired up.
- 03
Add your keys
Connect any model providers this workflow calls with your own API keys, or point it at local models.
- 04
Run and remix
Hit Run to execute the graph and watch results stream in. Swap models, edit prompts, or rewire nodes to make it yours.
Run Take While the Numbers Are Small on your machine
Free, open source, and yours to run. Download Studio, open the template, and run it with your own keys.








