---
title: "Drop While"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/control/dropwhile
markdown: https://docs.nodetool.ai/nodes/nodetool/control/dropwhile.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/control/dropwhile.md
---

# Drop While

**Type:** `nodetool.control.DropWhile`

**Namespace:** `nodetool.control`

## Description

Drop items while a predicate is truthy, then pass everything after.
    drop, skip, while, predicate, stream, suffix

    Use cases:
    - Skip leading whitespace, headers, or warm-up
    - Wait for a stream to enter a steady state
    - Predicate-based version of Drop(N)

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| input_item | `any` | Streaming input. | null |
| predicate | `str` | Safe expression evaluated per item (comparisons, boolean logic, arithmetic, property access on `item`). Items are dropped until the predicate first returns falsy; everything after is passed through. | `false` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `any` |  |

## Related Nodes

Browse other nodes in the [nodetool.control](./) namespace.
