Logical operations
![]() |
![]() |
| Vector | C | ST | |
| in the palette | on the schematic |
The block implements an arbitrary logical (boolean) operation:
- & (AND).
- 1 (OR).
- > (GREATER-THAN).
- < (LESS-THAN).
- = (EQUAL-TO).
- ≠ (NOT-EQUAL-TO).
- ≥ (GREATER-THAN-EQUAL-TO).
- ≤ (LESS-THAN-EQUAL-TO).
- ⊻ (exclusive OR, i.e. XOR).
- ⊻ (exclusive NOT-OR, i.e. NOT-XOR).
Inputs
- U1 - the first operand port;
- U2 - the second operand port.
Outputs
- Y - operation result.
Properties
- Second operand type – specifies the type of the second operand. If vector - element-by-element operation is performed. If scalar value - the operation is performed with each element of the first input and the value of the second input.
- Operand type – type of logical operation.
Parameters
none

