IFNULL
Selects the first argument when it is not null; otherwise uses the second argument.
Category: Utility Functions
Syntax
IFNULL(value, default)
Arguments
- value
anyPrimary input value. - default
anyFallback value returned when the primary value is null.
Returns
compatible input type — Returns either the primary value or the fallback value using a type compatible with both arguments.