powered by
Returns 1 if and only if all arguments equal 1, and 0 otherwise. For two operands, can also be written with the & operator: x & y.
&
x & y
And(..., id = NULL)
An And expression.
And
Two or more boolean Variables or logic expressions.
Optional integer ID (internal use).
Not(), Or(), Xor(), implies(), iff()
Not()
Or()
Xor()
implies()
iff()
if (FALSE) { x <- Variable(boolean = TRUE) y <- Variable(boolean = TRUE) both <- x & y # operator syntax both <- And(x, y) # functional syntax all3 <- And(x, y, z) # n-ary }
Run the code above in your browser using DataLab