|
Description
Performs a bit-by-bit OR of two numbers (expressed in binary for the task). Outputs a number composed of all those bits which are 1 in either of the two numbers.
Examples

All non-zero bits are combined......... Can be used to pack two numbers into one int
Arguments
initial-value [int]
Optional
Sets an initial value to be OR-ed with a number received in the left inlet.
Attributes
Common Box Attributes
Messages
bang
In left inlet: Performs the calculation with the numbers currently stored. If there is no argument, | initially holds .
int
Arguments
input
[int]
In left inlet: Outputs a number composed of all those bits which are 1 in either of the two numbers.
(inlet1)
Arguments
comparison-number
[int]
In right inlet: The number is stored for combination with a number received in the left inlet.
float
Arguments
input
[float]
Converted to
. set
Arguments
set-input
[int]
In left inlet: The word
followed by a number will set the input to the bitwise-or operation without causing output (a successive will output the result). list
Arguments
input
[number]
comparison-value [number]
comparison-value [number]
In left inlet: Combines the first and second numbers bit-by-bit, and outputs a number composed of all those bits which are 1 in either of the two numbers.
Output
int
All the non-zero bits of the two numbers received in the inlets are combined. If a bit is 1 in either one of the numbers, it will be 1 in the output number, otherwise it will be 0 in the output number.
See Also
Name | Description |
---|---|
& | |
&& | |
|| | |
Max Basic Tutorial 19: Timing | Max Basic Tutorial 19: Timing |