if_null_else.Rd
Checks input value for equality to NULL
and executes the code
only if this equality is not satisfied.
if_null_else(value, code = identity, ...)
[any
]
Value to compare to NULL
.
[function(1)
]
Function that takes value
as first (unnamed) parameter, executed if
value
is not NULL
.
Other parameters passed to code()
.
NULL
if input is NULL
, return value of code()
otherwise.