Skip to content

Math.Or

Name Mandatory Description Default Type
⬅️ Input The value or the sequence of values to compare the value specified in the Operand parameter with. IntInt2Int3Int4Int8Int16Color[Any]Bool
Output ➡️ This shard outputs the value resulting from the OR operation. IntInt2Int3Int4Int8Int16Color[Any]Bool
Operand No The value or sequence of values to compare the input with. 0 IntInt2Int3Int4Int8Int16Color[Any]BoolVar(Bool)

This shard performs a bitwise OR operation on the input value with the value specified in the Operand parameter and outputs the result. A bitwise OR operation is a binary operation that compares each bit of the binary representations of two numbers and outputs 1 if either bit is 1 and 0 if both bits are 0. The shard then outputs a value, whose binary representation is the concatenation of the resulting 1s and 0s from the Or comparison.

Examples

1
2
@i4(0 2 4 8) | Math.Or(Operand: @i4(3 3 3 3)) | Log
Assert.Is(@i4(3 3 7 11) Break: true)

[info] [sample-wire] @i4(3 3 7 11)