powered by
Returns 1 - x, flipping 0 to 1 and 1 to 0. Can also be written with the ! operator: !x.
1 - x
!
!x
Not(x, id = NULL)
A Not expression.
Not
A boolean Variable or logic expression.
Optional integer ID (internal use).
And(), Or(), Xor(), implies(), iff()
And()
Or()
Xor()
implies()
iff()
if (FALSE) { x <- Variable(boolean = TRUE) not_x <- !x # operator syntax not_x <- Not(x) # functional syntax }
Run the code above in your browser using DataLab