Returns a non-NA/non-NULL value based on the inputs. If either value is NA or NULL, it returns the non-NA/non-NULL value. If both values are equal, it returns that value.
Usage
get_join_value(x, y)
Value
A non-NA/non-NULL value or the common value if x equals y. Returns NULL if the values differ and neither is NA or NULL.