Files
CartoonRPG/Library/PackageCache/com.unity.visualeffectgraph@2973a8ac1070/Documentation~/Operator-BitwiseOr.md

19 lines
980 B
Markdown
Raw Normal View History

2025-06-05 22:59:18 +01:00
# Or (Bitwise)
Menu Path : **Operator > Bitwise > Or**
The **Or** Operator takes two inputs and outputs the result of a bitwise *or* operation between them. For each bit in **A** and **B**, if either is **1**, the output is **1**. Otherwise, the output is **0**.
For example, an input of 26 in the **A** input and 19 in the **B** input outputs 27. This is because, in binary, 26 is represented as 11010, and 29 is represented as 10011. Therefore the result is 11011, the binary representation of 27.
## Operator properties
| **Input** | **Type** | **Description** |
| --------- | -------- | ------------------ |
| **A** | uint | The left operand. |
| **B** | uint | The right operand. |
| **Input** | **Type** | **Description** |
| --------- | -------- | ------------------------------------------------------------ |
| **o** | uint | The result of a bitwise *or* operation between **A** and **B**. |