Home Explore Blog CI



nushell

commands/docs/is-empty.md
77194e6b40b382ce716981f30322a548695c83aa963d054f0000000300000360
---
title: is-empty
categories: |
  filters
version: 0.104.0
filters: |
  Check for empty values.
usage: |
  Check for empty values.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `is-empty` for [filters](/commands/categories/filters.md)

<div class='command-title'>Check for empty values.</div>

## Signature

```> is-empty {flags} ...rest```

## Parameters

 -  `...rest`: The names of the columns to check emptiness.


## Input/output types:

| input | output |
| ----- | ------ |
| any   | bool   |
## Examples

Check if a string is empty
```nu
> '' | is-empty
true
```

Check if a list is empty
```nu
> [] | is-empty
true
```

Check if more than one column are empty
```nu
> [[meal size]; [arepa small] [taco '']] | is-empty meal size
false
```

Chunks
d5217530 (1st chunk of `commands/docs/is-empty.md`)
Title: is-empty command in Nushell
Summary
The `is-empty` command in Nushell checks if a value is empty. It returns `true` if the input is empty (e.g., an empty string or an empty list) and `false` otherwise. It can also be used to check if specific columns in a table are empty.