ifNull<T extends Object> function

Expression<T> ifNull<T extends Object>(
  1. Expression<T> first,
  2. Expression<T> second
)

Evaluates to the first expression that's not null, or null if both evaluate to null. See coalesce if you need more than 2.

Implementation

Expression<T> ifNull<T extends Object>(
    Expression<T> first, Expression<T> second) {
  return FunctionCallExpression<T>('IFNULL', [first, second]);
}