&&, ||
Logical AND and OR operators.
Syntax
&& rval
|| rval
Options
- rval
- Optional initial value to be compared to values received via the left inlet. Must be an Integer or a Boolean (true or false).
Inlets
- param1
- The left inlet. Any value received via this inlet is compared to the value in the right inlet param2, and the result is sent via the outlet result.
- Type: Boolean or Integer
- param2
- The right inlet. The value is stored for comparison to any subsequent values received in the left inlet param1.
- Type: Boolean or Integer
Outlets
- result
-
- Type: Boolean or Integer
Comments
The AND and OR operators only accept Integers or Booleans as input.
These operators output a result whever a new value is received via the left inlet param1, using the new value of param1 and the most recent value of param2, or the optional initial argument if no value has yet been received for param2. If you want to wait until both param1 and param2 receive new input values before computing a result, use the synchronous operators '&& and '|| instead.
See Also
- '&&, '||
- Expr