/
IsNotNull function
IsNotNull function
Returns true
when an expression does not evaluate to the null
value.
Namespace
Global. No namespace qualifier required.
Input
any object or expression
Output
boolean (true/false)
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 null
, col2
is value
, col3
is 999
and col4
is null
.
set-column col1 IsNotNull(a) ? a : null
set-column col2 IsNotNull(b) ? b : null
set-column col3 IsNotNull(c) ? c : null
set-column col4 if(IsNotNull(c)) { a } else { b }
, multiple selections available,
Related content
Type functions
Type functions
Read with this
Fill NULL or Empty directive
Fill NULL or Empty directive
Read with this
DaysSinceFromDate function
DaysSinceFromDate function
More like this
Data quality functions
Data quality functions
Read with this
Filter Row If Matched directive
Filter Row If Matched directive
Read with this
Wrangler cheatsheet
Wrangler cheatsheet
Read with this
Created in 2020 by Google Inc.