W3cubDocs

/Nushell

is-empty for filters

Check for empty values.

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

>''|is-empty
true

Check if a list is empty

> [] |is-empty
true

Check if more than one column are empty

> [[mealsize]; [arepasmall] [taco'']] |is-emptymealsize
false

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/is-empty.html