Skip to contents

The right-hand side (y) is only evaluated if the left-hand side (x) is identical to TRUE. Useful for verbosity (verbose %&&% message("Hello world!")).

Usage

x %&&% y

Arguments

x

A logical scalar: left-hand side argument.

y

A right-hand side expression.

Value

y if x is TRUE, else invisible(NULL)

Examples

TRUE %&&% message("printed")
#> printed
FALSE %&&% message("not printed")