is-not-empty

For filters.

Check for non-empty values.

Command Type

built-in

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

> '' | is-not-empty
false

Check if a list is empty

> [] | is-not-empty
false

Check if more than one column are empty

> [[meal size]; [arepa small] [taco '']] | is-not-empty meal size
true

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.