Skip to contents

Check if condition is not null, if so output outputIfNotNull, otherwise, output outputIfNull

Usage

ifNotNull(condition, outputIfNotNull, outputIfNull = NULL)

Arguments

condition

argument 1

outputIfNotNull

argument 2

outputIfNull

argument 3

Value

outputIfNotNull if condition is not null, outputIfNull otherwise

Details

Shortkey checking if argument 1 is not null, output the argument 2 if not null, or output argument 3 otherwise