powered by
Returns x if it is not NULL, otherwise returns y. Equivalent to rlang::%||% but without requiring that dependency.
x
NULL
y
rlang::%||%
x %||% y
x if not NULL, otherwise y
Value to test
Fallback value if x is NULL
NULL %||% "default" "value" %||% "default" list()$missing %||% 0
Run the code above in your browser using DataLab