grapes-or-grapes: perl/javascript style "or"

%or%R Documentation

perl/javascript style "or"

Description

returns the first argument, if FALSE or of length 0; otherwise the second.

Usage

x %or% y

Arguments

x

first argument, of any class

y

second argument, of any class

Value

x, unless x is either the logical scalar FALSE, or has length 0, in which case return y. Note that length(NULL) is 0.

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm


MotusWTS/motusServer documentation built on Aug. 8, 2024, 10:23 p.m.