vadr (version 0.01)

shortcutting-or: Evaluate the first argument; if null, evaluate and return the second argument.

Description

Evaluate the first argument; if null, evaluate and return the second argument.

Usage

a %||% b

Arguments

a
The first argument to evaluate.
b
The second argument to evaluate. Only evaluated if A evaluates to NULL.

Value

the value of a if not null, else b