All templates
Template·Text & Data

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`.

Take While the Numbers Are Small — example output from the NodeTool workflow

The workflow

Workflow Editor
List
Take While
Input Item
Output
Collection
Items

Nodes in this workflow

4 nodes · 4 types
  • Collection
    nodetool.control.Collection
  • List
    nodetool.constant.List
  • Output
    nodetool.output.Output
  • Take While
    nodetool.control.TakeWhile

How to run it

  1. 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.

  2. 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.

  3. 03

    Add your keys

    Connect any model providers this workflow calls with your own API keys, or point it at local models.

  4. 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.