NullToEmpty function
NullToEmpty function
Returns an empty string
if the input column is null
, otherwise returns the input column value.
Namespace
Global. No namespace qualifier required.
Input
any object or expression
Output
input value or string
Example
If a
contains the null
, b
contains string value
and c
contains number 999
then If the input column does not contain a null
, the output column contains the value of the input column. If the input column does contain a null
, then the output column contains the string null
. In the below examples, col1
is ''
, col2
is value
, and col3
is 999
.
set-column col1 NullToEmpty(a)
set-column col2 NullToEmpty(b)
set-column col3 NullToEmpty(c)
, multiple selections available,
Related content
NullToZero function
NullToZero function
More like this
NullToValue function
NullToValue function
More like this
Filling null or empty cells
Filling null or empty cells
More like this
IsNotNull function
IsNotNull function
More like this
Fill NULL or Empty directive
Fill NULL or Empty directive
More like this
Not function
Not function
More like this
Created in 2020 by Google Inc.