$ifNull
Last updated
Last updated
$ifNull
operator checks if the condition resolves to null
(or None
) and returns you the item based on the condition passed in the object. You can use this in any .
<expr>
It can also be a Magical Autocomplete.
true
<true_val>
The value to return if the <expr>
is found to be null
(or None
).
It can also be a Magical Autocomplete.
true
<default>
The value to return if the <expr>
is not found to be null
(or None
)
It can also be a Magical Autocomplete.
true
<object>
- Returns either the <true_val>
or <default>
based on the expr. The object type can be anything based on the values provided.
Let's say we have declared a variable country
in our API flow, which has a null
value currently.
The above expression returns US as the expr resolves to null
.
The <expr>
expression can be any valid .