And
Logical 'and': y = u[1] and u[2] and ... and u[nu]
Library
Modelica/Blocks/MathBoolean
Description
The output is true if all inputs are true, otherwisethe output is false.
The input connector is a vector of Boolean input signals.When a connection line is drawn, the dimension of the inputvector is enlarged by one and the connection is automaticallyconnected to this new free index (thanks to theconnectorSizing annotation).
The usage is demonstrated, e.g., in exampleModelica.Blocks.Examples.BooleanNetwork1.
If no connection to the input connector "u" is present,the output is set to true: y=true.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_nu | nu | Number of input connections | Scalar |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo__nmodifiers | Number of Modifiers | Specifies the number of modifiers | Number | |
mo__modifiers | Modifiers | Add new modifier | Structure | |
mo__modifiers/varname | Variable name | Cell of strings | ||
mo__modifiers/attribute | Attribute | Cell of strings | 'start' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
u | implicit | Vector of Boolean input signals | input | 1 |
y | implicit | Boolean output signal | output | 1 |