AND OPERATOR (&)

1 2 3 4 5 6 7 8 9 10 |
x <- 25 y <- 15 z <- 25 #comparison if(x> y & x == z){ print('x is greater than y and x is equal to z.') } else{ print('x is equal to z and z is greater than y') } |

The & symbol (and) is a logical operator, and is used to combine conditional statements:

OR OPERATOR (OR)

1 2 3 4 5 6 7 8 |
x <- 25 y <- 15 z <- 25 #comparison if(x> y | x == z){ print('at least one is true') } |