Device Monitoring Studio - Monitor, log and analyze data coming through PC ports and connections
Download Device Monitoring Studio Hide this button

&& Logical AND Operator

This operator evaluates to non-zero if and only if both operands are non-zero, otherwise it evaluates to zero.

Syntax:

exp1 && exp2

Usage:

7 && 8               // evaluates to 1
0 && 2               // evaluates to 0
5 == 5 && 2==2       // evaluates to 1

If exp1 evaluates to zero, exp2 is not evaluated.