Conditional logical AND operator and
The conditional logical AND operator and
returns true if both the left-hand operand and the right-hand operand evaluate to true; otherwise, it returns false.
Examples
true and false
returns false.false and false
returns false.false and true
returns false.true and true
returns true.