null_to_defeault
null_to_defeault(x, d)
x
value to check and return
d
value to return in case x is NULL