a and b
a and b performs a logical AND between a and b. If a or b are not a boolean, 0 represents a logical false and any nonzero value represents a logical true. The truth table for this operator is shown below.
a |
b |
a and b |
false |
false |
false |
false |
true |
false |
true |
false |
false |
true |
true |
true |
a and b must be scalars.