Skip to contents

logical_check() throws an error if x is not equal to either TRUE or FALSE.

Usage

logical_check(x)

Arguments

x

A logical.

Value

A logical. If no error is thrown during evaluation, then logical_check() returns the x argument.