And

Logical 'and': y = u[1] and u[2] and ... and u[nu]

    And

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

And_0

NameLabelDescriptionData TypeValid Values

mo_nu

nu

Number of input connections

Scalar

And_1

NameLabelDescriptionData TypeValid 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'
'fixed'

mo__modifiers/value

Value

Ports

NameTypeDescriptionIO TypeNumber

u

implicit

Vector of Boolean input signals

input

1

y

implicit

Boolean output signal

output

1

See Also