Bitwise/Boolean
The Bitwise/Boolean functions allow you to manipulate boolean values. You can use the functions to create conditions that affect the flow of the Logic program.
The Bitwise/Boolean functions are used to determine an output based on 2 inputs (except for the NOT function, which has a single input). The Bitwise/Boolean functions are:
For Bitwise, the functions are applied to the inputs. The function is applied to the two corresponding bits.
Example:
If the AND function is used with the following inputs:
- Input 1: 011011
- Input 2: 101101
The result is 001001. This works by applying the AND function to the corresponding bits. So, as the last two bits on each line are both 1, the result of adding those bits is 1 (true). The last but one bits on each line are 1 and 0, so the result is 0 (false) as both inputs are not true.