| Using Simulink | Search  Help Desk |
| Logical Operator |
Perform the specified logical operation on the input.
Library
MathDescription
1 if TRUE and 0 if FALSE. The block icon shows the selected operator.
Data Type Support
An Logical Operator block accepts signals of typeboolean on its input ports, unless boolean compatibility mode is enabled (see "Enabling Strict Boolean Type Checking"), in which case the block also accepts inputs of type double. A nonzero input of type double is treated as TRUE (1), a zero input as FALSE (0). All inputs must be of the same type. The output of the block is of the same type as the input.
Parameters and Dialog Box

Characteristics
| Direct Feedthrough |
Yes |
| Sample Time |
Inherited from driving block |
| Scalar Expansion |
Of inputs |
| Vectorized |
Yes |
| Zero Crossing |
No |