powered by
Returns the first argument if it is not NULL or empty, otherwise returns the second argument.
x %||% y
Returns x if x is not NULL, not empty, or not a missing XML node, otherwise returns y.
An object to test if NULL or empty
An object to return if x is NULL or empty
NULL %||% "default" # returns "default" "value" %||% "default" # returns "value"
Run the code above in your browser using DataLab