Skip to content

BigInt.Or

Name Mandatory Description Default Type
⬅️ Input Any valid big integer(s) represented as bytes supported by this operation. Bytes[Bytes]
Output ➡️ Outputs the result of the OR operation as a big integer represented as bytes. Bytes[Bytes]
Operand No The second big integer to perform the OR operation with. 0 Var(Bytes)Var([Bytes])

This shard performs a bitwise OR operation on the input big integer with the big integer 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 the either or both bits are 1 and 0 if both bits are 0. The resulting number is a big integer representation of the 1s and 0s concatenated.

Examples

1
2
3
7 | BigInt = expected
3 | BigInt = operand
6 | BigInt | BigInt.Or(Operand: operand) | BigInt.Is(expected) | Assert.Is(true Break: true)