Home Explore Blog CI



nushell

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

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

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

## Signature

```> is-not-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-not-empty
false
```

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

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

Chunks
f634ccc6 (1st chunk of `commands/docs/is-not-empty.md`)
Title: is-not-empty command
Summary
The `is-not-empty` command in Nushell is a filter used to determine if a given value or column contains a non-empty value. It functions by evaluating whether the input is considered empty, returning `true` if it is not empty and `false` if it is. This command is versatile and can be applied to various data types, including strings, lists, and tables. When used with tables, it can check specific columns for non-empty values. If no columns are specified, it checks the entire input. The command's primary purpose is to provide a simple and efficient way to identify and filter out empty values, which is useful in data cleaning, validation, and other data processing tasks. It helps to ensure that subsequent operations are performed only on valid, populated data, preventing errors and improving the overall reliability of scripts and pipelines. It accepts an arbitrary number of column names to check for emptiness.