constant_or_null()

If arg2 is NULL, return NULL. Otherwise, return arg1.

Arguments & returns

constant_or_null(arg1, arg2, …)

Scalar
Overload link arg1arg2 … Varargs Returns
#01 ANYANY ANY ANY

… accepts a variable number of arguments of the type shown.

Example

constant_or_null example
SQL
Haybarn WASM 1.5.5-rc3 · In your browser

Engine example · Run to view results.