Skip to contents

Returns 1 - x, flipping 0 to 1 and 1 to 0. Can also be written with the ! operator: !x.

Usage

Not(x, id = NULL)

Arguments

x

A boolean Variable or logic expression.

id

Optional integer ID (internal use).

Value

A Not expression.

See also

Examples

if (FALSE) { # \dontrun{
x <- Variable(boolean = TRUE)
not_x <- !x          # operator syntax
not_x <- Not(x)      # functional syntax
} # }