&&
Short circuit boolean and operator.
Syntax
R = A && B
Inputs
- A
- Anything that can be converted to a Boolean value.
- B
- Anything that can be converted to a Boolean value.
Outputs
- R
- Scalar Boolean evaluation of the operand.
Example
Basic.
a = true
b = false
a && b
a = 1 b = 0 R = 0
Example
The following expression is only executed if the preceding expression is true.
b = true
exist('a') && b
b = 1
R = 1