&&
Logical "and" operator.
Syntax
expr_1 && expr_2
Operands
- expr_1, expr_2
 - A pair of valid scalar expressions.
 
Example
| Expression | Result | 
|---|---|
3 && 0 | 
                                0 | 
                            
1 && -1 | 
                                1 | 
                            
0 && 0 | 
                                0 | 
                            
a && !a  , where a=2 | 
                                0 | 
                            
Comments
The result is a scalar.
If expr_1 and expr_2 are nonzero, the result is one.
If the value of the either expression is zero, the result is zero.