Checks input value for equality to NULL and executes the code only if this equality is not satisfied.

if_null_else(value, code = identity, ...)

Arguments

value

[any]
Value to compare to NULL.

code

[function(1)]
Function that takes value as first (unnamed) parameter, executed if value is not NULL.

...


Other parameters passed to code().

Value

NULL if input is NULL, return value of code() otherwise.