Skip to contents

Or

Usage

lhs %or% rhs

Arguments

lhs

Any valid R expression

rhs

Any valid R expression

Value

Either the result of evaluating lhs, rhs or an error

Details

The function evaluates the expression lhs and if this expression results in an error, it catches that error and proceeds with evaluating the expression rhs and returns that result.

See also